import React from 'react'; import { ListProps } from 'antd-mobile/lib/components/list'; export interface IFormLayoutProps extends ListProps { prefixCls?: string; className?: string; style?: React.CSSProperties; layout?: 'vertical' | 'horizontal'; labelAlign?: 'right' | 'left' | ('right' | 'left')[]; wrapperAlign?: 'right' | 'left' | ('right' | 'left')[]; labelWrap?: boolean; labelWidth?: number; wrapperWidth?: number; wrapperWrap?: boolean; inset?: boolean; shallow?: boolean; bordered?: boolean; spaceGap?: number; gridColumnGap?: number; gridRowGap?: number; tooltipLayout?: 'icon' | 'text'; tooltipIcon?: React.ReactNode; feedbackLayout?: 'loose' | 'terse' | 'popover' | 'none'; size?: 'mini' | 'small' | 'middle' | 'large'; __layout__?: boolean; } export declare type IFormLayoutContext = IFormLayoutProps; export declare const FormLayoutDeepContext: React.Context; export declare const FormLayoutShallowContext: React.Context; export declare const useFormDeepLayout: () => IFormLayoutProps; export declare const useFormShallowLayout: () => IFormLayoutProps; export declare const useFormLayout: () => { prefixCls?: string; className?: string; style?: React.CSSProperties; layout?: 'vertical' | 'horizontal'; labelAlign?: 'right' | 'left' | ('right' | 'left')[]; wrapperAlign?: 'right' | 'left' | ('right' | 'left')[]; labelWrap?: boolean; labelWidth?: number; wrapperWidth?: number; wrapperWrap?: boolean; inset?: boolean; shallow?: boolean; bordered?: boolean; spaceGap?: number; gridColumnGap?: number; gridRowGap?: number; tooltipLayout?: 'icon' | 'text'; tooltipIcon?: React.ReactNode; feedbackLayout?: 'loose' | 'terse' | 'popover' | 'none'; size?: 'mini' | 'small' | 'middle' | 'large'; __layout__?: boolean; header?: React.ReactNode; mode?: "default" | "card"; children?: React.ReactNode; tabIndex?: number; 'aria-activedescendant'?: string; 'aria-atomic'?: boolean | "true" | "false"; 'aria-autocomplete'?: "list" | "none" | "inline" | "both"; 'aria-busy'?: boolean | "true" | "false"; 'aria-checked'?: boolean | "true" | "false" | "mixed"; 'aria-colcount'?: number; 'aria-colindex'?: number; 'aria-colspan'?: number; 'aria-controls'?: string; 'aria-current'?: boolean | "time" | "date" | "true" | "false" | "page" | "step" | "location"; 'aria-describedby'?: string; 'aria-details'?: string; 'aria-disabled'?: boolean | "true" | "false"; 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup"; 'aria-errormessage'?: string; 'aria-expanded'?: boolean | "true" | "false"; 'aria-flowto'?: string; 'aria-grabbed'?: boolean | "true" | "false"; 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false"; 'aria-hidden'?: boolean | "true" | "false"; 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling"; 'aria-keyshortcuts'?: string; 'aria-label'?: string; 'aria-labelledby'?: string; 'aria-level'?: number; 'aria-live'?: "off" | "assertive" | "polite"; 'aria-modal'?: boolean | "true" | "false"; 'aria-multiline'?: boolean | "true" | "false"; 'aria-multiselectable'?: boolean | "true" | "false"; 'aria-orientation'?: "horizontal" | "vertical"; 'aria-owns'?: string; 'aria-placeholder'?: string; 'aria-posinset'?: number; 'aria-pressed'?: boolean | "true" | "false" | "mixed"; 'aria-readonly'?: boolean | "true" | "false"; 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"; 'aria-required'?: boolean | "true" | "false"; 'aria-roledescription'?: string; 'aria-rowcount'?: number; 'aria-rowindex'?: number; 'aria-rowspan'?: number; 'aria-selected'?: boolean | "true" | "false"; 'aria-setsize'?: number; 'aria-sort'?: "none" | "ascending" | "descending" | "other"; 'aria-valuemax'?: number; 'aria-valuemin'?: number; 'aria-valuenow'?: number; 'aria-valuetext'?: string; }; export declare const FormLayout: React.FC & { useFormLayout: () => IFormLayoutContext; useFormDeepLayout: () => IFormLayoutContext; useFormShallowLayout: () => IFormLayoutContext; }; export default FormLayout;