import type { createProjectRuntimeController } from '../../runtime/controller.js';
import type { ProjectRuntimeHandle } from '../../runtime/types.js';
import type { McpProject } from '../protocol/project-schema.js';
/** Controller methods required by dev reads, injectable without acquiring a runtime. */
export type McpRuntimeController = Pick<ReturnType<typeof createProjectRuntimeController>, 'current' | 'status' | 'subscribe'>;
/** Own catalog/content per generation while preserving one transport-neutral facade. */
export declare function createDevMcpProject(options: {
    controller: McpRuntimeController;
    projectId: string;
    secret?: string;
    executionAvailable?: () => boolean;
}): {
    projectId: string;
    getProject: (signal?: AbortSignal) => import("./facade.js").McpRead<McpProject>;
    listStories: (input: import("../protocol/tool-schema.js").McpToolInput<'histoire_list_stories'>, signal?: AbortSignal) => import("./facade.js").McpRead<import("./facade.js").McpStoriesResult>;
    getStory: (input: import("../protocol/tool-schema.js").McpToolInput<'histoire_get_story'>, signal?: AbortSignal) => import("./facade.js").McpRead<import("./facade.js").McpStoryResult>;
    getDocs: (input: import("../protocol/tool-schema.js").McpToolInput<'histoire_get_docs'>, signal?: AbortSignal) => import("./facade.js").McpRead<import("../protocol/content-schema.js").McpDocsResult>;
    getSource: (input: import("../protocol/tool-schema.js").McpToolInput<'histoire_get_source'>, signal?: AbortSignal) => import("./facade.js").McpRead<import("../protocol/content-schema.js").McpSourceResult>;
    getPreview: (input: import("../protocol/tool-schema.js").McpToolInput<'histoire_get_preview'>, signal?: AbortSignal) => import("./facade.js").McpRead<import("./facade.js").McpPreviewResult>;
    /** Capture synchronous private admission authority; never serialize this value. */
    capture(): {
        handle: ProjectRuntimeHandle;
        catalog: {
            readonly current: import("./snapshot.js").CatalogSnapshot;
            readonly updating: boolean;
            markUpdating(): void;
            publish(ctx: import("../../context.js").Context, outcomes?: ReadonlyMap<string, import("../../collect/outcome.js").StoryCollectionOutcome>): Promise<import("./snapshot.js").CatalogSnapshot>;
            getStory(storyId: string, expectedRevision?: string): {
                revision: string;
                story: import("../../runtime/catalog/types.js").CatalogStory;
                projectId: string;
            };
            getTarget(storyId: string, variantId: string, expectedRevision?: string): {
                revision: string;
                story: import("../../runtime/catalog/types.js").CatalogStory;
                variant: {
                    id: string;
                    title: string;
                };
                projectId: string;
            };
            list: (input: import("./catalog-pages.js").CatalogListInput) => {
                projectId: string;
                revision: string;
                updating: boolean;
                items: {
                    id: string;
                    title: string;
                    treePath: string[];
                    filePath: string;
                    fileOrigin?: "external" | "generated" | "project";
                    supportPluginId: string;
                    group?: string;
                    docsOnly: boolean;
                    variants: {
                        id: string;
                        title: string;
                    }[];
                    docsAvailable: boolean;
                    sourceAvailable: boolean;
                    sourceKind: "file" | "unavailable" | "virtual";
                }[];
                total: number;
                diagnostics: {
                    filePath?: string;
                    storyId?: string;
                    code: string;
                    message: string;
                }[];
                diagnosticsTruncated: boolean;
                nextCursor: string;
            };
        };
        content: {
            getDocs(input: import("./content.js").DocsContentInput): Promise<import("../protocol/content-schema.js").McpDocsResult>;
            getSource(input: import("./content.js").SourceContentInput): Promise<import("../protocol/content-schema.js").McpSourceResult>;
        };
    };
    /** Drop facade observers; transport lifecycle does not own the runtime itself. */
    close(): void;
};
//# sourceMappingURL=dev-facade.d.ts.map