/** A deferred resolver for a generated class / enum / type alias. */ export type LazyEntry = () => unknown; export declare class BamlTypeMap { private classLazy; private enumLazy; private aliasLazy; private classCache; private enumCache; private aliasCache; private reverse; private _descriptor; static fromLazyEntries(args: { classes: Record; enums: Record; typeAliases: Record; descriptor?: string; }): BamlTypeMap; /** The embedded program descriptor, or null when this typemap declares no types. */ get descriptor(): string | null; private _resolve; getClass(fqn: string): unknown; getEnum(fqn: string): unknown; getTypeAlias(fqn: string): unknown; /** * Reverse lookup for the encode path: given a value's constructor, return * its BAML FQN, or "" if it is not a codegen-emitted class. Builds the * reverse map lazily by resolving every class/enum thunk once. */ private ensureReverse; /** Identity-only lookup for capture; never inspects application prototypes. */ captureType(ctor: unknown): string; jsTypeToBamlType(ctor: unknown): string; warm(): void; } /** Install `m` as the runtime typemap and hand its program descriptor to the * bridge, which encodes every argument against the types it declares. */ export declare function setTypeMap(m: BamlTypeMap): void; export declare function getTypeMap(): BamlTypeMap; //# sourceMappingURL=typemap.d.ts.map