histoire
Version:
A fast story book powered by Vite
13 lines • 735 B
TypeScript
import type { Context } from '../context.js';
/** Virtual id of a story's own source, imported by the Source panel. */
export declare const STORY_SOURCE_ID_PREFIX = "virtual:story-source:";
/** Resolved form of {@link STORY_SOURCE_ID_PREFIX}. */
export declare const RESOLVED_STORY_SOURCE_ID_PREFIX = "/__resolved__virtual:story-source:";
/**
* Builds the resolved virtual id carrying the source of one story.
* @param storyId Id of the story.
*/
export declare function getResolvedStorySourceId(storyId: string): string;
/** Builds the existing Source panel module without applying MCP containment policy. */
export declare function storySource(ctx: Context, id: string): Promise<string>;
//# sourceMappingURL=story-source.d.ts.map