import type { ViteDevServer } from 'vite';
import type { Context } from '../../context.js';
import type { CollectionEvidence } from './evidence.js';
/** Attach generation-local proof collection before dev-event admission. */
export declare function attachTestCollectionEligibility(ctx: Context, server: ViteDevServer): void;
/** Absent client graph never establishes a test-free story. */
export declare function getKnownEmptyTestStories(ctx: Context, storyId?: string, signal?: AbortSignal): Promise<string[]>;
/** Capture graph ownership as well as the private empty-story inventory. */
export declare function captureTestCollectionEligibility(ctx: Context, storyId?: string | readonly string[], signal?: AbortSignal): Promise<{
    knownEmptyStoryIds: any[];
    evidence: Map<string, CollectionEvidence>;
    assertCurrent(): void;
} | {
    knownEmptyStoryIds: string[];
    evidence: Map<string, CollectionEvidence>;
    token: {};
    assertCurrent(): void;
    /** Evidence holds while its graph files saw no edit and every unwatched leaf keeps its content. */
    verify(evidence: CollectionEvidence): Promise<boolean>;
    /** Unwatched leaves alone: true while every one still has its recorded fingerprint (unverifiable counts as changed). */
    verifyLeaves: (leaves: ReadonlyMap<string, string>) => Promise<boolean>;
}>;
/** Cheap dependency-generation capture lets cache hits avoid every transform and graph proof; `verify` revalidates one story's evidence. */
export declare function captureTestCollectionGeneration(ctx: Context): {
    token: {};
    assertCurrent(): void;
    /** Evidence holds while its graph files saw no edit and every unwatched leaf keeps its content. */
    verify(evidence: CollectionEvidence): Promise<boolean>;
    /** Unwatched leaves alone: true while every one still has its recorded fingerprint (unverifiable counts as changed). */
    verifyLeaves: (leaves: ReadonlyMap<string, string>) => Promise<boolean>;
};
/** Inspect closed transformed graphs without executing user modules or mounting variants. */
export declare function createTestCollectionEligibility(ctx: Context, server: ViteDevServer): {
    /** Setup and dependencies must be known empty for every story shortcut. */
    analyze(storyId?: string | readonly string[], signal?: AbortSignal, observe?: boolean): Promise<{
        knownEmptyStoryIds: string[];
        evidence: Map<string, CollectionEvidence>;
    }>;
    /** Existing empty-story callers need no traversal beyond a registration-bearing node. */
    collect(storyId?: string, signal?: AbortSignal): Promise<string[]>;
    /** Opaque token captures service identity and every watcher event touching a proved graph. */
    generation(): {
        token: {};
        assertCurrent(): void;
        /** Evidence holds while its graph files saw no edit and every unwatched leaf keeps its content. */
        verify(evidence: CollectionEvidence): Promise<boolean>;
        /** Unwatched leaves alone: true while every one still has its recorded fingerprint (unverifiable counts as changed). */
        verifyLeaves: (leaves: ReadonlyMap<string, string>) => Promise<boolean>;
    };
    /** Late dependency edits revoke both queued proof and partial publication authority. */
    capture(storyId?: string | readonly string[], signal?: AbortSignal): Promise<{
        knownEmptyStoryIds: string[];
        evidence: Map<string, CollectionEvidence>;
        token: {};
        assertCurrent(): void;
        /** Evidence holds while its graph files saw no edit and every unwatched leaf keeps its content. */
        verify(evidence: CollectionEvidence): Promise<boolean>;
        /** Unwatched leaves alone: true while every one still has its recorded fingerprint (unverifiable counts as changed). */
        verifyLeaves: (leaves: ReadonlyMap<string, string>) => Promise<boolean>;
    }>;
};
//# sourceMappingURL=index.d.ts.map