export declare const GOOGLE_CODE_EXECUTION_TOOL_NAME = "code_execution"; export type GoogleSupportedPartDataField = "text" | "functionCall" | "executableCode" | "codeExecutionResult"; export type GoogleExecutableCode = { providerId?: string; language: "PYTHON"; code: string; }; export type GoogleCodeExecutionResult = { providerId?: string; outcome: "OUTCOME_OK" | "OUTCOME_FAILED" | "OUTCOME_DEADLINE_EXCEEDED"; output: string; isError: boolean; }; export type GoogleToolCallCorrelationRegistry = { registerFunctionCall(partIndex: number, providerId: string | undefined): string; registerCodeExecution(providerId: string | undefined): string; resolveCodeExecutionResult(providerId: string | undefined): string; assertSettled(): void; }; /** * Owns Gemini's tool-call id allocation and code-execution pairing rules. * * The response normalizer and exact-replay validator must derive identical * ids for anonymous code execution. Keeping the allocator here prevents those * two protocol boundaries from drifting independently. */ export declare function createGoogleToolCallCorrelationRegistry(): GoogleToolCallCorrelationRegistry; /** * Validates the documented `Part.data` oneof and returns the supported field. * * The extension intentionally fails closed for media/file/function-response * output parts until it has a canonical runtime representation for them. */ export declare function readGooglePartDataField(part: Record): GoogleSupportedPartDataField; export declare function readGoogleExecutableCode(value: unknown): GoogleExecutableCode; export declare function readGoogleCodeExecutionResult(value: unknown): GoogleCodeExecutionResult; export declare function googleCodeExecutionInput(executableCode: GoogleExecutableCode): { language: "PYTHON"; code: string; }; export declare function googleCodeExecutionOutput(result: GoogleCodeExecutionResult): { outcome: GoogleCodeExecutionResult["outcome"]; output: string; }; //# sourceMappingURL=google-content-parts.d.ts.map