/** * `gsk telephony call recording [local-path]` (#66245): the CLI * streams the gsk-token recording route straight into a local file. The * server-side `call_recording` tool answers metadata + download_url only and * is what `--info` calls; the bytes never travel through a tool result. */ export declare const CALL_RECORDING_ENDPOINT = "/telephony/call/recording"; export declare const RECORDING_CHANNEL_MODES: readonly ["stereo", "mono"]; export type RecordingChannels = (typeof RECORDING_CHANNEL_MODES)[number]; export declare const CALL_RECORDING_LOCAL_FILE_HELP: string; export declare const CALL_RECORDING_INFO_HELP: string; /** * `--channels` as the route expects it: absent means the server default * (stereo); anything but the two modes is refused before a request is made. */ export declare function normalizeRecordingChannels(value: unknown): RecordingChannels | undefined; export declare function callRecordingEndpoint(projectId: string, channels: RecordingChannels | undefined): string; /** Fallback file name when the server sends no Content-Disposition. */ export declare function defaultRecordingFileName(projectId: string, channels: RecordingChannels | undefined): string; /** * The bare operands after ``: Commander hands the positional * back as `primaryArgValue`, and everything else the user typed stays in * `invokedCmd.args` — `[local-path]` is the first of those. */ export declare function recordingDestinationOperands(invokedArgs: readonly string[], primaryArgValue: unknown): string[]; export declare function formatBytes(bytes: number): string; /** One stderr progress line; the percentage needs a known total. */ export declare function recordingProgressLine(fileName: string, receivedBytes: number, totalBytes: number | undefined): string; /** * Throttle for the progress callback: at most one line per `intervalMs`, * so a fast download does not flood the terminal. */ export declare function progressThrottle(intervalMs: number, emit: (receivedBytes: number) => void, now?: () => number): (receivedBytes: number) => void; //# sourceMappingURL=telephony-recording.d.ts.map