import type { HistoireVisualCaptureSpec, HistoireVisualCase, HistoireVisualResult } from '@histoire/shared';
import type { ResolvedVisualConfig } from './config.js';
/** Durable baseline repeats bounded case props in capture spec; channel budget is separate. */
export declare const VISUAL_BASELINE_METADATA_LIMIT: number;
/** One approved case/profile image and exact capture policy. */
export interface VisualBaseline {
    /** Metadata format version. */
    schemaVersion: 1;
    /** Full case ID. */
    caseId: string;
    /** Exact durable target and props captured by this baseline. */
    case: HistoireVisualCase;
    /** Full profile ID. */
    profileId: string;
    /** Exact resolved rendering settings. */
    spec: HistoireVisualCaptureSpec;
    /** Platform namespace. */
    platform: string;
    /** Immutable PNG content address. */
    imageHash: string;
    /** Device-pixel dimensions. */
    dimensions: {
        width: number;
        height: number;
    };
    /** Browser which produced approved pixels. */
    browserVersion: string;
}
/** Stable path hashes identifiers independently, never accepts raw path fragments. */
export declare function baselinePath(config: ResolvedVisualConfig, platform: string, caseId: string, profileId: string): string;
/** Validate metadata against independently resolved target before reading its image. */
export declare function parseVisualBaseline(bytes: Uint8Array, caseId: string, profileId: string, platform: string): VisualBaseline;
/** Read exact working revision even when Git comparison uses another baseline. */
export declare function workingBaselineRevision(root: string, path: string): Promise<string | null>;
/** Exact baseline metadata for one approved capture, bounded before staging. */
export declare function visualBaselineBytes(platform: string, result: HistoireVisualResult, imageHash: string): string;
/** Publish immutable image before baseline metadata so partial writes never point at absent image. */
export declare function publishVisualBaselineImage(root: string, config: ResolvedVisualConfig, image: Uint8Array): Promise<string>;
//# sourceMappingURL=baseline.d.ts.map