/** * @license * Copyright 2026 Qwen * SPDX-License-Identifier: Apache-2.0 */ export interface RealtimeFunctionOutputOptions { /** * Trusted local confirmation that a Proactive creation was committed. * Never derive this flag from model arguments or the rendered receipt text. * Omit it if the receipt is replaced by an error or otherwise changed. */ taskAdmission?: boolean; /** Trusted runtime refusal before any task mutation, never receipt text. */ taskAuthorizationRejected?: boolean; } /** * Exact task identity for a receipt continuation. Normalize only JSON layout * and top-level key order; never collapse different strings or array values. * The caller must still restrict deduplication to its own admitted tool batch. */ export declare function taskRequestKey(name: string, rawArguments: string): string | undefined; /** * Establishes accepted work solely to avoid executing its exact request twice. * Warnings or partial results still belong to accepted work and remain in the * original receipt. This predicate must never be used to suppress audio. */ export declare function isAcceptedTaskAdmission(name: string, output: string, options?: RealtimeFunctionOutputOptions): boolean; /** * Classifies only successful asynchronous task admission, not task completion. * A true result alone does not authorize muting: the caller must also verify * that this is the matching receipt continuation, every sibling tool qualifies, * and the parent response already supplied its spoken preamble. */ export declare function isSuccessfulTaskAdmission(name: string, output: string, options?: RealtimeFunctionOutputOptions): boolean;