/** * @deprecated * The usage of the Ok/Err pattern is deprecated because of the danger of mismatched 'instanceof' types in node_modules. * Please use the regular try-catch pattern. */ export declare class Ok { value: T; constructor(value: T); } /** * @deprecated * The usage of the Ok/Err pattern is deprecated because of the danger of mismatched 'instanceof' types in node_modules. * Please use the regular try-catch pattern. */ export declare const ok: (value: T) => Ok; /** * @deprecated * The usage of the Ok/Err pattern is deprecated because of the danger of mismatched 'instanceof' types in node_modules. * Please use the regular try-catch pattern. */ export declare class Err { value: T; constructor(value: T); } /** * @deprecated * The usage of the Ok/Err pattern is deprecated because of the danger of mismatched 'instanceof' types in node_modules. * Please use the regular try-catch pattern. */ export declare const err: (value: T) => Err; type KeysOfType = { [K in keyof T]: T[K] extends U ? K : never; }[keyof T]; type RequiredKeys = Exclude>, undefined>; type OptionalKeys = Exclude>; export type ToRequired = { [K in OptionalKeys]: T[K] extends undefined | infer U ? U : T[K]; }; export type ToOptional = { [K in keyof T]?: T[K]; }; export type JSONValue = string | number | boolean | null | { [key: string]: JSONValue; } | JSONValue[]; export type MaybePromise = T | Promise; export * from "./types/generated";