import { IDL } from "@icp-sdk/core/candid"; export declare const extractAndSortArgs: >(argsObject: T) => Array; /** * Normalize form state by converting objects with numeric string keys to arrays. * TanStack Form sometimes creates { "0": value, "1": value } instead of [value, value] * when using indexed field paths like "parent.0.child". * * This function also handles the variant cleanup case where objects have mixed * numeric and named keys (e.g., { "0": old, "Add": current }) by removing * orphaned numeric keys. * * This function recursively processes the form state and fixes these issues. */ export declare const normalizeFormState: (value: T) => T; export declare const convertNanoToDate: (nano: bigint) => Date; export declare const convertToCycle: (cycles: bigint) => string; export declare const convertStringToNumber: (value: string) => number | bigint; export declare const validateNumberError: (t: IDL.Type) => (value: string) => string | true; export declare const validateError: (t: IDL.Type) => (value: unknown) => string | true; export declare function isQuery(func: IDL.FuncClass): boolean; export declare function isUrl(str: string): boolean; export declare function isImage(str: string): boolean; export declare function isUuid(str: string): boolean; export declare function isPrincipalId(str: string): boolean; export declare function isCanisterId(str: string): boolean; export declare function isBtcAddress(str: string): boolean; export declare function isEthAddress(str: string): boolean; export declare function isAccountIdentifier(str: string): boolean; export declare function isIsoDate(str: string): boolean; //# sourceMappingURL=helpers.d.ts.map