/** Safe config write inputs shared by plugin toggles and marketplace jobs. */
export interface SafeConfigWrite {
    /** Project containment boundary. */ root: string;
    /** Existing standalone config file. */ file: string;
    /** Reviewed config revision. */ expectedHash: string;
    /** Proposed source, generated by an approved editor. */ code: string;
    /** Ownership/cancellation check before touching watched source. */ isActive: () => boolean;
    /** Optional identity expectations, captured by toggle inventory. */ expectedNames?: string[];
    /** Persists restart recovery immediately before the watched write. */ beforeWrite?: () => Promise<void>;
}
/** Verification failure with explicit config rollback evidence. */
export declare class SafeConfigWriteError extends Error {
    /** Whether original config remains byte-for-byte current. */ restored: boolean;
    /** Records rollback outcome without exposing arbitrary loader output. */
    constructor(restored: boolean);
}
/** Validates relative imports, writes atomically and restores guarded backups on failure. */
export declare function safeConfigWrite(input: SafeConfigWrite): Promise<{
    hash: string;
    backup?: string;
}>;
//# sourceMappingURL=safe-config-write.d.ts.map