import type { HarnessEvent } from "../../core/src/classify/classifier.js";
import type { MatrixCell } from "../../schema/src/records/context.js";
import type { BrowserContext } from "playwright";
import { type AuthAdapter, type AuthProof } from "../../playwright/src/auth.js";
export type AuthSetupResult = {
    kind: "ok";
    proof?: AuthProof;
} | {
    kind: "harness";
    code: string;
    message: string;
    retryable: boolean;
};
export declare function applyAuthAdapter(input: {
    adapter: AuthAdapter | undefined;
    context: BrowserContext;
    cell: MatrixCell;
}): Promise<AuthSetupResult>;
export declare function cellFailureEvent(cell: MatrixCell, error: unknown, options?: {
    phase?: HarnessEvent["phase"];
    code?: string;
}): HarnessEvent;
//# sourceMappingURL=cell-harness.d.ts.map