HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/propbase/propbase_website/node_modules/react-final-form/dist/index.js.flow
// @flow
import * as React from "react";
import type { FormApi, FormState, FormValuesShape } from "final-form";
import type {
  FieldProps,
  FieldRenderProps,
  FormProps,
  FormSpyProps,
  UseFieldConfig,
  UseFormStateParams,
} from "./types";

export type {
  FieldProps,
  FieldRenderProps,
  FormProps,
  FormRenderProps,
  FormSpyProps,
  FormSpyRenderProps,
} from "./types";

declare export var Field: React.ComponentType<FieldProps>;
declare export var Form: React.ComponentType<FormProps<Object>>;
declare export var FormSpy: React.ComponentType<FormSpyProps<Object>>;
declare export function useForm<FormValues: FormValuesShape>(
  componentName?: string,
): FormApi<FormValues>;
declare export function useFormState<FormValues>(
  params?: UseFormStateParams<FormValues>,
): FormState<FormValues>;
declare export var useField: (
  name: string,
  config?: UseFieldConfig,
) => FieldRenderProps;
declare export function withTypes<FormValues: FormValuesShape>(): {
  Form: React.ComponentType<FormProps<FormValues>>,
  FormSpy: React.ComponentType<FormSpyProps<FormValues>>,
};
declare export var version: string;