/**
 * Key used to store timed transcripts in AudioFrame.userdata.
 */
export declare const USERDATA_TIMED_TRANSCRIPT = "lk.timed_transcripts";
/**
 * Marker yielded from an LLM node to flush the current audio/text output segment.
 */
export declare const FlushSentinel: unique symbol;
export type FlushSentinel = typeof FlushSentinel;
/** @internal */
export declare function isFlushSentinel(value: unknown): value is FlushSentinel;
/**
 * Connection options for API calls, controlling retry and timeout behavior.
 */
export interface APIConnectOptions {
    /** Maximum number of retries to connect to the API. Default: 3 */
    maxRetry: number;
    /** Interval between retries to connect to the API in milliseconds. Default: 2000 */
    retryIntervalMs: number;
    /** Timeout for connecting to the API in milliseconds. Default: 10000 */
    timeoutMs: number;
}
export declare const DEFAULT_API_CONNECT_OPTIONS: APIConnectOptions;
/**
 * Return the interval for the given number of retries.
 * The first retry is immediate, and then uses specified retryIntervalMs.
 * @internal
 */
export declare function intervalForRetry(connOptions: APIConnectOptions, numRetries: number): number;
/**
 * Connection options for the agent session, controlling retry and timeout behavior
 * for STT, LLM, and TTS connections.
 */
export interface SessionConnectOptions {
    /** Connection options for speech-to-text. */
    sttConnOptions?: Partial<APIConnectOptions>;
    /** Connection options for the language model. */
    llmConnOptions?: Partial<APIConnectOptions>;
    /** Connection options for text-to-speech. */
    ttsConnOptions?: Partial<APIConnectOptions>;
    /** Maximum number of consecutive unrecoverable errors from LLM or TTS before closing the session. Default: 3 */
    maxUnrecoverableErrors?: number;
}
/**
 * Resolved session connect options with all values populated.
 * @internal
 */
export interface ResolvedSessionConnectOptions {
    sttConnOptions: APIConnectOptions;
    llmConnOptions: APIConnectOptions;
    ttsConnOptions: APIConnectOptions;
    maxUnrecoverableErrors: number;
}
export declare const DEFAULT_SESSION_CONNECT_OPTIONS: ResolvedSessionConnectOptions;
//# sourceMappingURL=types.d.ts.map