type Unknown = Record<string, unknown>;
export interface ToolGovernanceOptions {
    injectGuidance?: boolean;
    snapshot?: {
        enabled?: boolean;
        endpoint?: string;
        requestId?: string;
        baseDir?: string;
    };
}
/**
 * Process OpenAI Chat request (messages/tools) with unified 标准 governance.
 * - Augment tools (strict schemas)
 * - Inject/Refine system tool guidance (idempotent)
 * - Canonicalize structured tool_calls; set content=null when applicable
 */
export declare function processChatRequestTools(request: Unknown, opts?: ToolGovernanceOptions): Unknown;
export declare function normalizeApplyPatchToolCallsOnResponse(chat: Unknown): Unknown;
export declare function normalizeApplyPatchToolCallsOnRequest(request: Unknown): Unknown;
export declare function processChatResponseTools(resp: Unknown): Unknown;
export interface GovernContext extends ToolGovernanceOptions {
    phase: 'request' | 'response';
    endpoint?: 'chat' | 'responses' | 'messages';
    stream?: boolean;
    produceRequiredAction?: boolean;
    requestId?: string;
}
export declare function governTools(payload: Unknown, ctx: GovernContext): Unknown;
export {};
