/// <reference types="node" resolution-mode="require"/>
import { z } from 'zod';
export declare const text_to_audio_asset_config: z.ZodObject<{
    text: z.ZodString;
    synthesis: z.ZodObject<{
        config: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
        extension: z.ZodString;
        synthesize: z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodObject<{
            error: z.ZodType<Error, z.ZodTypeDef, Error>;
            value: z.ZodOptional<z.ZodUndefined>;
        }, "strip", z.ZodTypeAny, {
            error: Error;
            value?: undefined;
        }, {
            error: Error;
            value?: undefined;
        }>, z.ZodObject<{
            error: z.ZodOptional<z.ZodUndefined>;
            value: z.ZodType<import("stream").Readable, z.ZodTypeDef, import("stream").Readable>;
        }, "strip", z.ZodTypeAny, {
            value: import("stream").Readable;
            error?: undefined;
        }, {
            value: import("stream").Readable;
            error?: undefined;
        }>]>>>;
    }, "strip", z.ZodTypeAny, {
        config: {} & {
            [k: string]: unknown;
        };
        extension: string;
        synthesize: (args_0: string, ...args_1: unknown[]) => Promise<{
            value: import("stream").Readable;
            error?: undefined;
        } | {
            error: Error;
            value?: undefined;
        }>;
    }, {
        config: {} & {
            [k: string]: unknown;
        };
        extension: string;
        synthesize: (args_0: string, ...args_1: unknown[]) => Promise<{
            value: import("stream").Readable;
            error?: undefined;
        } | {
            error: Error;
            value?: undefined;
        }>;
    }>;
    hosting: z.ZodObject<{
        config: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
        write: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodObject<{
            error: z.ZodType<Error, z.ZodTypeDef, Error>;
            value: z.ZodOptional<z.ZodUndefined>;
        }, "strip", z.ZodTypeAny, {
            error: Error;
            value?: undefined;
        }, {
            error: Error;
            value?: undefined;
        }>, z.ZodObject<{
            error: z.ZodOptional<z.ZodUndefined>;
            value: z.ZodObject<{
                href: z.ZodString;
                message: z.ZodString;
            }, "strip", z.ZodTypeAny, {
                message: string;
                href: string;
            }, {
                message: string;
                href: string;
            }>;
        }, "strip", z.ZodTypeAny, {
            value: {
                message: string;
                href: string;
            };
            error?: undefined;
        }, {
            value: {
                message: string;
                href: string;
            };
            error?: undefined;
        }>]>>>;
    }, "strip", z.ZodTypeAny, {
        config: {} & {
            [k: string]: unknown;
        };
        write: (...args: unknown[]) => Promise<{
            value: {
                message: string;
                href: string;
            };
            error?: undefined;
        } | {
            error: Error;
            value?: undefined;
        }>;
    }, {
        config: {} & {
            [k: string]: unknown;
        };
        write: (...args: unknown[]) => Promise<{
            value: {
                message: string;
                href: string;
            };
            error?: undefined;
        } | {
            error: Error;
            value?: undefined;
        }>;
    }>;
}, "strip", z.ZodTypeAny, {
    hosting: {
        config: {} & {
            [k: string]: unknown;
        };
        write: (...args: unknown[]) => Promise<{
            value: {
                message: string;
                href: string;
            };
            error?: undefined;
        } | {
            error: Error;
            value?: undefined;
        }>;
    };
    synthesis: {
        config: {} & {
            [k: string]: unknown;
        };
        extension: string;
        synthesize: (args_0: string, ...args_1: unknown[]) => Promise<{
            value: import("stream").Readable;
            error?: undefined;
        } | {
            error: Error;
            value?: undefined;
        }>;
    };
    text: string;
}, {
    hosting: {
        config: {} & {
            [k: string]: unknown;
        };
        write: (...args: unknown[]) => Promise<{
            value: {
                message: string;
                href: string;
            };
            error?: undefined;
        } | {
            error: Error;
            value?: undefined;
        }>;
    };
    synthesis: {
        config: {} & {
            [k: string]: unknown;
        };
        extension: string;
        synthesize: (args_0: string, ...args_1: unknown[]) => Promise<{
            value: import("stream").Readable;
            error?: undefined;
        } | {
            error: Error;
            value?: undefined;
        }>;
    };
    text: string;
}>;
export type Config = z.input<typeof text_to_audio_asset_config>;
/**
 * Synthesizes some text into a readable stream representing the speech. Then it
 * generates an audio asset from that speech.
 *
 * @param config
 * @returns
 */
export declare const textToAudioAsset: (config: Config) => Promise<{
    error: Error;
    value?: undefined;
} | {
    value: {
        message: string;
        href: string;
    };
    error?: undefined;
}>;
//# sourceMappingURL=text-to-audio-asset.d.ts.map