import { z } from "zod"; export declare class VoiceError extends Error { readonly code: "voice_unavailable" | "voice_busy" | "voice_expired"; constructor(code: "voice_unavailable" | "voice_busy" | "voice_expired"); } export interface VoiceStream { append(audio: Uint8Array, signal: AbortSignal): Promise; finish(signal: AbortSignal): Promise; cancel(): Promise; } export interface VoiceEngine { available(signal: AbortSignal): Promise; start(signal: AbortSignal): Promise; } declare const discoverySchema: z.ZodObject<{ port: z.ZodNumber; token: z.ZodString; apiVersion: z.ZodLiteral<"2">; }, z.core.$strip>; type Discovery = z.infer; /** Only fixed localhost routes are reachable; neither the phone nor discovery supplies a URL. */ export declare class HexVoiceEngine implements VoiceEngine { readonly discovery: () => Promise; readonly fetcher: typeof fetch; constructor(discovery?: () => Promise, fetcher?: typeof fetch); available(signal: AbortSignal): Promise; start(signal: AbortSignal): Promise; } export {}; //# sourceMappingURL=hex-engine.d.ts.map