import type { StoryCollectionOutcome } from '../../collect/outcome.js';
import type { Context } from '../../context.js';
import type { CatalogSnapshot, SnapshotOptions } from './types.js';
/** One generation-owned completed catalog; adapters own paging and transport policies. */
export declare function createRuntimeCatalog(options: SnapshotOptions & {
    root: string;
    isActive?: () => boolean;
}): {
    /** Last completed detached snapshot; absent before first completion. */
    readonly current: CatalogSnapshot;
    /** A new collection/content batch blocks execution admission. */
    readonly updating: boolean;
    /** Monotonic execution admission fence, including unchanged catalog publications. */
    readonly executionRevision: number;
    /** Retains last completed reads while blocking execution. */
    markUpdating(): void;
    /** Observes future completed changes without implicit callback. */
    subscribe(listener: (snapshot: CatalogSnapshot) => void): () => void;
    /** Serializes snapshots so slower previous reads cannot overwrite later publications. */
    publish(ctx: Context, outcomes?: ReadonlyMap<string, StoryCollectionOutcome>): Promise<CatalogSnapshot>;
    /** Resolves exact metadata target against completed publication. */
    getStory(storyId: string, expectedRevision?: string): {
        projectId: string;
        revision: string;
        story: import("./types.js").CatalogStory;
    };
    /** Resolves executable target only after current batch completed. */
    getTarget(storyId: string, variantId: string, expectedRevision?: string): {
        projectId: string;
        revision: string;
        story: import("./types.js").CatalogStory;
        variant: {
            id: string;
            title: string;
        };
    };
};
/** Canonical generation catalog consumed by Node, browser source, and MCP adapters. */
export type RuntimeCatalog = ReturnType<typeof createRuntimeCatalog>;
//# sourceMappingURL=publication.d.ts.map