import { ElementField, IconType, Option, Path } from '..'; export type DefaultPathsOptions = Record; export type PathsOptions = Record; export type BaseElementField = ElementField; export interface BtnElementOptions extends Partial> { text?: string; variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger'; size?: 'sm' | 'md' | 'lg'; disabled?: boolean; loading?: boolean; icon?: IconType; iconPosition?: 'left' | 'right'; href?: string; target?: '_blank' | '_self' | '_parent' | '_top'; } export interface PillElementOptions extends Partial> { color?: string; icon?: IconType; } export interface TxtElementOptions extends Partial> { text?: string; tag?: 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div'; size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'; weight?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold'; color?: string; align?: 'left' | 'center' | 'right' | 'justify'; } export interface ImgElementOptions extends Partial> { src?: string; alt?: string; width?: number | string; height?: number | string; loading?: 'lazy' | 'eager'; fit?: 'cover' | 'contain' | 'fill' | 'scale-down' | 'none'; rounded?: boolean | 'sm' | 'md' | 'lg' | 'full'; fallback?: string; } export interface DropdownElementOptions extends Partial> { options?: Option[] | (() => Option[]); placeholder?: string; searchable?: boolean; multiselect?: boolean; clearable?: boolean; onSelect?: (value: any) => void; onSearch?: (search: string) => any; } export interface ListItemElementOptions extends Partial> { id?: Path; title?: string; subtitle?: string; icon?: IconType; avatar?: string; badge?: string | number; actions?: Array<{ label: string; onClick: () => void; icon?: IconType; }>; clickable?: boolean; divider?: boolean; } export declare function btn(options: BtnElementOptions): BaseElementField; export declare function btn = any, PO extends PathsOptions = DefaultPathsOptions>(id: P): BaseElementField; export declare function btn = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, text: string): BaseElementField; export declare function btn = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, icon: IconType): BaseElementField; export declare function btn = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, text: string, options: BtnElementOptions): BaseElementField; export declare function btn = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, icon: IconType, options: BtnElementOptions): BaseElementField; export declare function btn = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, textOrIcon: string | IconType, options: BtnElementOptions): BaseElementField; export declare function getBaseElementField(elementType: string, id?: Path, options?: Partial>): BaseElementField; export declare function iconBtn = any, PO extends PathsOptions = DefaultPathsOptions>(id?: P, icon?: IconType, options?: BtnElementOptions): BaseElementField; export declare function txt(options: TxtElementOptions): BaseElementField; export declare function txt = any, PO extends PathsOptions = DefaultPathsOptions>(id: P): BaseElementField; export declare function txt = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, text: string): BaseElementField; export declare function txt = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, text: string, tag: 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div'): BaseElementField; export declare function txt = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, text: string, options: TxtElementOptions): BaseElementField; export declare function img(options: ImgElementOptions): BaseElementField; export declare function img = any, PO extends PathsOptions = DefaultPathsOptions>(id: P): BaseElementField; export declare function img = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, src: string): BaseElementField; export declare function img = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, src: string, alt: string): BaseElementField; export declare function img = any, PO extends PathsOptions = DefaultPathsOptions>(id: P, src: string, options: ImgElementOptions): BaseElementField; export declare function pill(options: PillElementOptions): BaseElementField; export declare function dropdown(...args: Array | BaseElementField>): BaseElementField; export declare function listItem(title?: string, options?: ListItemElementOptions): BaseElementField; export declare function container(id?: Path, children?: BaseElementField[], options?: Partial>): BaseElementField; export declare function findElementById(id: string, elements: BaseElementField[]): BaseElementField | undefined; export declare function column = any, PO extends PathsOptions = DefaultPathsOptions>(id?: P, labelOrOptions?: string | Partial>, options?: Partial>): BaseElementField; export declare const col: typeof column; export declare function useElements(): { btn: typeof btn; iconBtn: typeof iconBtn; txt: typeof txt; img: typeof img; dropdown: typeof dropdown; listItem: typeof listItem; container: typeof container; findElementById: typeof findElementById; getBaseElementField: typeof getBaseElementField; col: typeof column; column: typeof column; }; //# sourceMappingURL=elementUtils.d.ts.map