/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
import type { PreviewResult } from '../../lib/types.js';
import type { StudioUser } from '../../lib/types.js';
import type { DraftFile } from '../../lib/types.js';
/**
 * A function that handles the preview flow.
 * Cloud can inject its GitHub preview implementation. OSS defaults to the same
 * change-proposal flow used by local source deploys.
 */
export type PreviewHandler = (req: Request, user: StudioUser, drafts: DraftFile[]) => Promise<PreviewResult>;
/**
 * Inject a custom preview handler. Called by cloud-studio at startup.
 */
export declare function setPreviewHandler(handler: PreviewHandler): void;
export declare const previewRoutes: import("../policy-router.js").StudioPolicyRoutes;
