export interface OpenDesignGeneratedArtifact {
    path: string;
    size: number;
    modifiedAt: number;
}
export interface OpenDesignAgentOptions {
    artifactDir?: string;
    cwd?: string;
    diagnose?: boolean;
    image?: string | string[];
    json?: boolean;
    model?: string;
    runId?: string;
    smoke?: boolean;
    stdio?: boolean;
    stdinIdleMs?: string | number;
    stdinMaxBytes?: string | number;
    stdinTimeoutMs?: string | number;
    timeoutMs?: string | number;
}
export type OpenDesignAgentStatus = "ok" | "artifact_ok" | "timeout_artifact_ok" | "timeout_no_artifact" | "fatal";
interface BridgePromptOptions {
    artifactDir?: string;
    imagePaths?: string[];
}
export declare function isOpenDesignSmokePrompt(prompt: string): boolean;
export declare function buildBridgePrompt(prompt: string, options?: BridgePromptOptions): string;
export declare function sanitizeOpenDesignAgentOutput(output: string): string;
export declare function isSecretLikeOpenDesignEnvName(name: string): boolean;
export declare function buildSafeOpenDesignKimiEnv(sourceEnv?: NodeJS.ProcessEnv, overrides?: Record<string, string>): Record<string, string>;
export declare function shouldTreatOpenDesignBridgeAsSuccess(input: {
    failed: boolean;
    exitCode: number | null | undefined;
    cleanStdout: string;
    cleanStderr: string;
    generatedArtifacts: OpenDesignGeneratedArtifact[];
}): boolean;
export declare function classifyOpenDesignBridgeResult(input: {
    failed: boolean;
    exitCode: number | null | undefined;
    cleanStdout: string;
    cleanStderr: string;
    generatedArtifacts: OpenDesignGeneratedArtifact[];
}): OpenDesignAgentStatus;
export declare function openDesignAgentCommand(options?: OpenDesignAgentOptions): Promise<void>;
export {};
