UNPKG

histoire

Version:

A fast story book powered by Vite

47 lines • 2.78 kB
import type { HistoireDevOptions } from '../../api/types.js'; import type { createDevHosting } from './dev.js'; /** Uses the same Vite middleware lifecycle with an explicitly owned HTTP listener. */ export declare function createManagedHosting(options: Omit<Parameters<typeof createDevHosting>[0], 'middleware' | 'getOrigin' | 'onGeneration' | 'closeListener'> & HistoireDevOptions): { handle: import("../../api/types.js").HistoireMiddlewareHandle; controller: { readonly status: import("@histoire/dev-proxy/protocol").RuntimeStatus; readonly current: import("@histoire/dev-proxy/lifecycle").LifecycleHandle<import("../types.js").RuntimeGeneration>; start: () => Promise<import("@histoire/dev-proxy/lifecycle").LifecycleHandle<import("../types.js").RuntimeGeneration>>; restart: (_source?: string) => Promise<import("@histoire/dev-proxy/lifecycle").LifecycleHandle<import("../types.js").RuntimeGeneration>>; waitForReady: () => Promise<import("@histoire/dev-proxy/lifecycle").LifecycleHandle<import("../types.js").RuntimeGeneration>>; subscribe(listener: (status: import("@histoire/dev-proxy/protocol").RuntimeStatus, handle?: import("@histoire/dev-proxy/lifecycle").LifecycleHandle<import("../types.js").RuntimeGeneration>) => void): () => void; close(): Promise<void>; }; execution: { readonly available: boolean; readonly pendingCount: number; enqueue<T>(task: import("../execution-types.js").ExecutionTask<T>): import("../execution-types.js").ExecutionHandle<T>; cancelAll: () => Promise<void>; quarantine(): void; close(): Promise<void>; }; readonly catalog: { readonly current: import("../catalog/types.js").CatalogSnapshot; readonly updating: boolean; readonly executionRevision: number; markUpdating(): void; subscribe(listener: (snapshot: import("../catalog/types.js").CatalogSnapshot) => void): () => void; publish(ctx: import("../../context.js").Context, outcomes?: ReadonlyMap<string, import("../../collect/outcome.js").StoryCollectionOutcome>): Promise<import("../catalog/types.js").CatalogSnapshot>; getStory(storyId: string, expectedRevision?: string): { projectId: string; revision: string; story: import("../catalog/types.js").CatalogStory; }; getTarget(storyId: string, variantId: string, expectedRevision?: string): { projectId: string; revision: string; story: import("../catalog/types.js").CatalogStory; variant: { id: string; title: string; }; }; }; acquired: Promise<void>; }; //# sourceMappingURL=managed.d.ts.map