import type { UiAiThread } from '@histoire/shared';
import type { AiThreadDraftInput } from '../../ai-threads/validate.js';
import type { Context } from '../../context.js';
/**
 * Collected story file of a thread target; pinned threads also need their exact variant.
 * Orphan threads stay stored but cannot be pinned again or dispatched with canvas context.
 * @param ctx Dev context.
 * @param thread Thread or draft.
 * @returns Story file, or undefined when the thread has no story context.
 */
export declare function threadStoryFile(ctx: Context, thread: Pick<UiAiThread, 'context' | 'anchor'>): import("@histoire/shared").ServerStoryFile;
/**
 * Admission check of a draft target: a collected story, and for pinned threads a variant
 * on a story with a canvas (not docs-only) plus a generated screenshot of that variant.
 * @param ctx Dev context.
 * @param draft Shape-validated draft.
 */
export declare function assertThreadTarget(ctx: Context, draft: AiThreadDraftInput): Promise<void>;
//# sourceMappingURL=ai-threads-target.d.ts.map