type Key = string | number | symbol; /** * Recursively expand intersections and mapped types for better IDE display, * while preserving functions, arrays, primitives, and types with a string * index signature (e.g. `Record`) as-is. */ export type Prettify = T extends (...args: never[]) => unknown ? T : T extends ReadonlyArray ? T : T extends string | number | boolean | symbol | bigint | null | undefined ? T : T extends object ? string extends keyof T ? T : { [K in keyof T]: Prettify; } & {} : T; /** * A deep partial where every optional key also accepts an explicit `undefined` * value. Keys set to `undefined` are how callers opt out of a default when * merging themes (`makeTheme` keeps the previous value for those keys). */ export type PartialDeep = T extends object ? { [P in keyof T]?: PartialDeep | undefined; } : T; export type LiteralUnion = T | (F & {}); export type KeyUnion = LiteralUnion>; export type DistributiveMerge = A extends any ? Prettify & B> : never; export type UnionToIntersection = (T extends any ? (input: T) => void : never) extends (input: infer Intersection) => void ? Intersection : never; /** * @hidden */ type __Pick = { [P in K]: O[P]; } & {}; /** * @hidden */ export type _Pick = __Pick; /** * Extract out of `O` the fields of key `K` * @param O to extract from * @param K to chose fields * @returns [[Object]] */ export type Pick = O extends unknown ? _Pick : never; /** * Create a promise and get access to its `resolve` and `reject` functions. * * Mirrors `Promise.withResolvers()`, available starting from Node 22. * TODO: Remove once Node 22 becomes the minimum supported version. */ export declare function withResolver(): { promise: Promise; resolve: (value: T) => void; reject: (error: unknown) => void; }; export {};