import type { SheetPresentationOptions } from "../types"; import type { AnyComponent, ResolvedItem } from "./store-types"; declare global { var process: undefined | { env?: { NODE_ENV?: string; }; }; } export declare const toRecord: (value: unknown) => Record; export declare const isComponent: (value: unknown) => value is AnyComponent; /** * Generate a unique sheet id. `crypto.randomUUID` is only available in * secure contexts, so fall back to a timestamp + random suffix on * non-secure origins (e.g. plain-HTTP LAN dev servers). */ export declare const generateSheetId: () => string; export declare const getStringArg: (value: unknown, name: string) => string; export declare const resolvePresentationOptions: (value: unknown) => SheetPresentationOptions | undefined; /** * Dev-mode warning: detect likely inline arrow functions passed as ad-hoc components. * When a new component reference has the same displayName/name as an existing one, * it's almost always an inline arrow being re-created every render. */ export declare const warnInlineComponent: (component: AnyComponent, componentRegistry: Map, warnedNames: Set) => void; export declare const registerComponent: (component: AnyComponent, componentRegistry: Map, componentMap: Map, getNextKey: () => string, warnedNames: Set) => string; /** * If `first` is a function (component), register it and return { type, id, data }. * Otherwise, pass through the string-based (type, id, data) args unchanged. */ export declare const resolveArgs: (componentRegistry: Map, componentMap: Map, getNextKey: () => string, warnedNames: Set, first: unknown, second: unknown, third: unknown, fourth?: unknown) => ResolvedItem; //# sourceMappingURL=store-args.d.ts.map