histoire
Version:
A fast story book powered by Vite
12 lines • 671 B
TypeScript
import type { ViteDevServer } from 'vite';
import type { createProjectFileIndex } from '../../comments/files-search.js';
import type { Context } from '../../context.js';
/**
* Mounts comment file search, attachment upload, screenshot-to-attachment copy and attachment download under `/__histoire/comments/`.
* @param ctx Dev context.
* @param server Vite dev server.
* @param index Shared project file index.
* @param isActive Generation ownership.
*/
export declare function registerCommentsHttp(ctx: Context, server: ViteDevServer, index: ReturnType<typeof createProjectFileIndex>, isActive: () => boolean): () => void;
//# sourceMappingURL=comments-http.d.ts.map