import type { PartnerStore } from '../store.js'; import type { TtsCredentials } from './credentials.js'; import type { PartnerOutboundAttachment } from '../channel-message.js'; import { type TtsProfile, type TtsReceipt } from './domain.js'; export declare class TtsService { readonly store: PartnerStore; private vault; private directory; private fetcher; private edits; private jobs; constructor(store: PartnerStore, vault: TtsCredentials, directory: string, fetcher?: typeof fetch); private owner; list(owner: string): { credentialConfigured: boolean; id: string; name: string; provider: import("./domain.js").TtsProvider; endpoint: string; model: string; voice: string; language: string; speed: number; instructions: string; format: "wav" | "mp3"; updatedAt: number; authHeader: string; authPrefix: string; bodyTemplate?: string | undefined; responseMode: "binary" | "base64"; responsePath: string; }[]; profile(owner: string, id: string): TtsProfile; save(owner: string, raw: Record): Promise; remove(owner: string, id: string, expected: unknown): Promise; configure(channelId: string, raw: Record): Promise; preview(owner: string, id: string, text: string, signal: AbortSignal): Promise<{ data: Buffer; mediaType: string; }>; private generate; recover(): Promise; deliver(input: { owner: string; channelId: string; routeId: string; inputId: string; text: string; voice?: string | undefined; signal: AbortSignal; guard: () => void; send: (data: Buffer, signal: AbortSignal, guard: () => void, file: PartnerOutboundAttachment) => Promise; }): Promise; deliverFile(input: Parameters[0] & { cwd: string; path: string; }): Promise; private perform; } //# sourceMappingURL=service.d.ts.map