/// import { Readable } from 'node:stream'; import { z } from 'zod'; export declare const client_config: z.ZodObject<{ /** * Base path where the audio asset will be written to the filesystem. * * @example * _site/assets/audio */ assetBasepath: z.ZodString; /** * Subpath/subdomain under your control where the generated audio asset will * be publicly accessible. * * @example * Subpath: /assets/audio * * @example * Subdomain: https://audio.example.com */ hrefBase: z.ZodString; }, "strip", z.ZodTypeAny, { assetBasepath: string; hrefBase: string; }, { assetBasepath: string; hrefBase: string; }>; export type ClientConfig = z.input; export declare const write_config: z.ZodObject<{ /** * Name of the audio asset to be written to the filesystem. */ assetName: z.ZodString; /** * Readable stream containing the audio data to be written to the filesystem. */ readable: z.ZodType; }, "strip", z.ZodTypeAny, { assetName: string; readable: Readable; }, { assetName: string; readable: Readable; }>; export type WriteConfig = z.input; /** * @internal */ export declare const write: (cfg: ClientConfig, config: WriteConfig) => Promise<{ value: { message: string; href: string; }; error?: undefined; } | { error: Error; value?: undefined; }> | { error: Error; }; export declare const defClient: (config: ClientConfig) => { config: { assetBasepath: string; hrefBase: string; }; write: (config: { assetName: string; readable: Readable; }) => Promise<{ value: { message: string; href: string; }; error?: undefined; } | { error: Error; value?: undefined; }> | { error: Error; }; }; //# sourceMappingURL=fs.d.ts.map