export declare function parseLenientJsonishWithNative(value: unknown): unknown;
export declare function repairArgumentsToStringWithNative(value: unknown): string;
export declare function extractToolCallsFromReasoningTextWithNative(text: string, idPrefix?: string): {
    cleanedText: string;
    toolCalls: Array<Record<string, unknown>>;
};
export declare function extractReasoningSegmentsWithNative(source: string): {
    text: string;
    segments: string[];
};
export declare function normalizeAssistantTextToToolCallsWithNative(message: Record<string, unknown>, options?: Record<string, unknown>): Record<string, unknown>;
export declare function normalizeReasoningInChatPayloadWithNative(payload: unknown): unknown;
export declare function normalizeReasoningInResponsesPayloadWithNative(payload: unknown, options?: Record<string, unknown>): unknown;
export declare function normalizeReasoningInGeminiPayloadWithNative(payload: unknown): unknown;
export declare function normalizeReasoningInAnthropicPayloadWithNative(payload: unknown): unknown;
export declare function normalizeReasoningInOpenAIPayloadWithNative(payload: unknown): unknown;
export declare function bridgeToolToChatDefinitionWithNative(tool: Record<string, unknown>, options?: {
    sanitizeMode?: string;
}): Record<string, unknown> | null;
export declare function chatToolToBridgeDefinitionWithNative(tool: Record<string, unknown>, options?: {
    sanitizeMode?: string;
}): Record<string, unknown> | null;
export declare function mapBridgeToolsToChatWithNative(rawTools: unknown, options?: {
    sanitizeMode?: string;
}): Array<Record<string, unknown>>;
export declare function mapChatToolsToBridgeWithNative(rawTools: unknown, options?: {
    sanitizeMode?: string;
}): Array<Record<string, unknown>>;
export declare function hasValidThoughtSignatureWithNative(block: unknown, options?: Record<string, unknown>): boolean;
export declare function sanitizeThinkingBlockWithNative(block: unknown): Record<string, unknown>;
export declare function filterInvalidThinkingBlocksWithNative(messages: unknown, options?: Record<string, unknown>): unknown[];
export declare function removeTrailingUnsignedThinkingBlocksWithNative(blocks: unknown, options?: Record<string, unknown>): unknown[];
export declare function sanitizeReasoningTaggedTextWithNative(text: string): string;
export declare function ensureBridgeInstructionsWithNative(payload: Record<string, unknown>): Record<string, unknown>;
export declare function repairFindMetaWithNative(script: string): string;
export declare function splitCommandStringWithNative(input: string): string[];
export declare function packShellArgsWithNative(input: Record<string, unknown>): Record<string, unknown>;
export declare function flattenByCommaWithNative(items: string[]): string[];
export declare function chunkStringWithNative(s: string, minParts?: number, maxParts?: number, targetChunk?: number): string[];
export declare function deriveToolCallKeyWithNative(call: Record<string, unknown> | null | undefined): string | null;
export declare function normalizeIdValueWithNative(value: unknown, forceGenerate?: boolean): string;
export declare function extractToolCallIdWithNative(obj: unknown): string | undefined;
export declare function createToolCallIdTransformerWithNative(style: string): Record<string, unknown>;
export declare function transformToolCallIdWithNative(state: Record<string, unknown>, id: string): {
    id: string;
    state: Record<string, unknown>;
};
export declare function enforceToolCallIdStyleWithNative(messages: unknown[], state: Record<string, unknown>): {
    messages: unknown[];
    state: Record<string, unknown>;
};
export declare function buildProviderProtocolErrorWithNative(input: {
    message: string;
    code: string;
    protocol?: string;
    providerType?: string;
    category?: string;
    details?: Record<string, unknown>;
}): Record<string, unknown>;
export declare function extractJsonToolCallsFromTextWithNative(text: string, options?: Record<string, unknown>): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractXMLToolCallsFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractSimpleXmlToolsFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractParameterXmlToolsFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractInvokeToolsFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractToolNamespaceXmlBlocksFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractApplyPatchCallsFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractBareExecCommandFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractExecuteBlocksFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractExploredListDirectoryCallsFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function extractQwenToolCallTokensFromTextWithNative(text: string): Array<{
    id?: string;
    name: string;
    args: string;
}> | null;
export declare function mergeToolCallsWithNative(existing: Array<Record<string, unknown>> | undefined, additions: Array<Record<string, unknown>> | undefined): Array<Record<string, unknown>>;
export declare function mapReasoningContentToResponsesOutputWithNative(reasoningContent: unknown): Array<{
    type: 'reasoning';
    content: string;
}>;
export declare function validateToolArgumentsWithNative(toolName: string | undefined, args: unknown): {
    repaired: string;
    success: boolean;
    error?: string;
};
export declare function repairToolCallsWithNative(toolCalls: Array<{
    name?: string;
    arguments?: unknown;
}>): Array<{
    name?: string;
    arguments: string;
}>;
export declare function isImagePathWithNative(pathValue: unknown): boolean;
export declare function extractStreamingToolCallsWithNative(input: {
    buffer: string;
    text: string;
    idPrefix: string;
    idCounter: number;
    nowMs: number;
}): {
    buffer: string;
    idCounter: number;
    toolCalls: Array<Record<string, unknown>>;
};
export declare function isCompactionRequestWithNative(payload: unknown): boolean;
export declare function encodeMetadataPassthroughWithNative(parameters: unknown, prefix: string, keys: readonly string[]): Record<string, string> | undefined;
export declare function extractMetadataPassthroughWithNative(metadataField: unknown, prefix: string, keys: readonly string[]): {
    metadata?: Record<string, unknown>;
    passthrough?: Record<string, unknown>;
};
export declare function ensureProtocolStateWithNative(metadata: Record<string, unknown>, protocol: string): {
    metadata: Record<string, unknown>;
    node: Record<string, unknown>;
};
export declare function getProtocolStateWithNative(metadata: Record<string, unknown> | undefined, protocol: string): Record<string, unknown> | undefined;
export declare function readRuntimeMetadataWithNative(carrier: Record<string, unknown> | null | undefined): Record<string, unknown> | undefined;
export declare function ensureRuntimeMetadataCarrierWithNative(carrier: Record<string, unknown>): Record<string, unknown>;
export declare function cloneRuntimeMetadataWithNative(carrier: Record<string, unknown> | null | undefined): Record<string, unknown> | undefined;
export declare function injectMcpToolsForChatWithNative(tools: unknown[] | undefined, discoveredServers: string[]): unknown[];
export declare function normalizeArgsBySchemaWithNative(input: unknown, schema: unknown): {
    ok: boolean;
    value?: Record<string, unknown>;
    errors?: string[];
};
export declare function normalizeToolsWithNative(tools: unknown): Array<Record<string, unknown>>;
export declare function extractOutputSegmentsWithNative(source: Record<string, unknown> | undefined, itemsKey?: string): {
    textParts: string[];
    reasoningParts: string[];
};
export declare function normalizeContentPartWithNative(part: unknown, reasoningCollector: string[]): {
    normalized: Record<string, unknown> | null;
    reasoningCollector: string[];
};
export declare function normalizeMessageContentPartsWithNative(parts: unknown, reasoningCollector: string[]): {
    normalizedParts: Array<Record<string, unknown>>;
    reasoningChunks: string[];
};
export declare function normalizeChatMessageContentWithNative(content: unknown): {
    contentText?: string;
    reasoningText?: string;
};
export declare function normalizeOpenaiMessageWithNative(message: unknown, disableShellCoerce: boolean): unknown;
export declare function normalizeOpenaiToolWithNative(tool: unknown): unknown;
export declare function normalizeOpenaiChatMessagesWithNative(messages: unknown): unknown[];
export declare function normalizeOpenaiToolCallWithNative(toolCall: unknown, disableShellCoerce: boolean): unknown;
export declare function prepareGeminiToolsForBridgeWithNative(rawTools: unknown, missing: unknown[]): {
    defs?: Array<Record<string, unknown>>;
    missing: Array<Record<string, unknown>>;
};
export declare function buildGeminiToolsFromBridgeWithNative(defs: unknown, mode?: 'antigravity' | 'default'): Array<Record<string, unknown>> | undefined;
export declare function pickResponsesPersistedFieldsWithNative(payload: unknown): Record<string, unknown>;
export declare function convertResponsesOutputToInputItemsWithNative(response: unknown): Array<Record<string, unknown>>;
export declare function enforceChatBudgetWithNative(chat: unknown, allowedBytes: number, systemTextLimit: number): unknown;
export declare function resolveBudgetForModelWithNative(modelId: string, fallback: {
    maxBytes: number;
    safetyRatio: number;
    allowedBytes: number;
    source: string;
} | null | undefined): {
    maxBytes: number;
    safetyRatio: number;
    allowedBytes: number;
    source: string;
};
export declare function injectMcpToolsForResponsesWithNative(tools: unknown[] | undefined, discoveredServers: string[]): unknown[];
export declare function normalizeFunctionCallIdWithNative(input: {
    callId?: string;
    fallback?: string;
}): string;
export declare function normalizeFunctionCallOutputIdWithNative(input: {
    callId?: string;
    fallback?: string;
}): string;
export declare function normalizeResponsesCallIdWithNative(input: {
    callId?: string;
    fallback?: string;
}): string;
export declare function clampResponsesInputItemIdWithNative(rawValue: unknown): string | undefined;
