import { FormKitExtendableSchemaRoot } from '@formkit/core'; import { FormKitPlugin } from '@formkit/core'; import { FormKitSchemaExtendableSection } from '@formkit/inputs'; import { FormKitSchemaNode } from '@formkit/core'; import { FormKitTypeDefinition } from '@formkit/core'; /** * Creates a FormKitPro conditional section. * @param condition - A schema condition to apply to a section. * @param then - The section that applies if the condition is true. * @param otherwise - (else) The section that applies if the condition is false. * @returns * @public */ export declare function $if(condition: string, then: FormKitProExtendableSection | string, otherwise?: FormKitProExtendableSection | string): FormKitProExtendableSection; /** * Input definition for a autocomplete input. * @public */ export declare const autocomplete: FormKitProInput; /** * Creates a set of commonly used sections. * @param createSection - Creates commonly used sections. * @returns * @public */ export declare function createBaseSections(createSection: SectionFactory): { outer: FormKitProSection; wrapper: FormKitProSection; inner: FormKitProSection; icon: (sectionKey: string, el?: string | undefined) => () => FormKitSchemaExtendableSection; label: FormKitProSection; prefix: FormKitProSection; suffix: FormKitProSection; help: FormKitProSection; messages: FormKitProSection; message: FormKitProSection; }; /** * Creates a new FormKit Pro plugin. * @param apiKey - The FormKit Pro api key found on your pro.formkit.com dashboard. * @param inputs - The pro inputs to register, should only be used for Pro Inputs. * @returns * @public */ export declare function createProPlugin(apiKey: string, inputs?: Record): FormKitPlugin; /** * Creates a new section createSection factory with the input code curried in. * @param inputCode - The input code. * @returns * @public */ export declare function createSectionFactory(inputCode: string): SectionFactory; /** * Input definition for a datepicker input. * @public */ export declare const datepicker: FormKitProInput; /** * Input definition for a dropdown input. * @public */ export declare const dropdown: FormKitProInput; /** * A schema section that is compatible with FormKitPro’s schema composition. */ declare type ExtendableSchema = IsRoot extends true ? FormKitExtendableSchemaRoot : FormKitSchemaExtendableSection; /** * An extendable schema section that is compatible with FormKitPro’s schema * composition. */ declare interface FormKitProExtendableSection { (apiKey: string): ExtendableSchema; } /** * The type definition of a FormKitPro input. * @public */ export declare type FormKitProInput = Omit & { schema: FormKitProSchema; }; /** * The type definition of a FormKit pro schema. * @public */ export declare interface FormKitProSchema { (apiKey: string): FormKitExtendableSchemaRoot; } /** * A schema section that is compatible with FormKitPro’s schema composition. */ declare interface FormKitProSection { (...children: Array): FormKitProExtendableSection; } declare namespace inputs { export { dropdown, toggle, repeater, rating, autocomplete, datepicker, taglist, mask, transferlist, slider } } export { inputs } /** * Input definition for a mask input. * @public */ export declare const mask: FormKitProInput; /** * Input definition for a rating input. * @public */ export declare const rating: FormKitProInput; /** * Input definition for a repeater input. * @public */ export declare const repeater: FormKitProInput; /** * A factory that creates createSection functions that are curried with the * input code. */ declare type SectionFactory = (sectionName: string, schema: string | (() => FormKitSchemaNode), root?: IsRoot) => FormKitProSection; /** * Input definition for a slider input. * @public */ export declare const slider: FormKitProInput; /** * Input definition for a taglist input. * @public */ export declare const taglist: FormKitProInput; /** * Input definition for a toggle input. * @public */ export declare const toggle: FormKitProInput; /** * Input definition for a transferlist input. * @public */ export declare const transferlist: FormKitProInput; /** * @public */ declare module '@formkit/inputs' { export interface FormKitOptionsPropExtensions { asLoaderFunction: FormKitOptionsLoader | Promise } } /** * @public */ declare module '@formkit/core' { export interface FormKitFrameworkContext { hasNextPage: (dataForNextPage?: unknown) => void page: number search: string } } export { }