import { type Scope } from "./scope.ts"; import { Secret } from "./secret.ts"; import type { Type } from "arktype"; export type Serialized = T extends undefined | null | boolean | number | string | bigint ? T : T extends Type ? { "@schema": string; } : T extends Secret ? { "@secret": string; } : T extends Secret ? { "@secret": { object: string; }; } : T extends Date ? { "@date": string; } : T extends Symbol ? { "@symbol": string; } : T extends Scope ? { "@scope": null; } : T extends Function ? undefined : T extends Array ? Array> : T extends object ? { [K in keyof T as K extends symbol ? string : K]: Serialized; } : T; export declare function serialize(scope: Scope, value: any, options?: { encrypt?: boolean; transform?: (value: any) => any; }): Promise; export declare function deserialize(scope: Scope, value: any, options?: { transform?: (value: any) => undefined | { value: any; }; }): Promise; export declare const isBinary: (value: any) => value is Buffer | Uint8Array | ArrayBuffer | Blob | ReadableStream; export declare const serializeBinary: (value: Buffer | Uint8Array | ArrayBuffer | Blob | ReadableStream) => Promise; export declare function streamToBuffer(stream: ReadableStream): Promise; //# sourceMappingURL=serde.d.ts.map