import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { z } from "zod"; import type { ClipwrightClient } from "@clipwright/sdk"; import { createAssetRequest, type PriceEntry } from "@clipwright/core"; export interface CreateServerOptions { fileAccess: "local" | "refuse"; ownAgent?: boolean; explainer?: boolean; prices?: readonly PriceEntry[]; adGuide?: boolean; facelessDiy?: boolean; } export declare const GET_AD_GUIDE_DESCRIPTION: string; export declare const REMOTE_UPLOAD_REFUSAL: string; export declare const DESCRIBE_TOOL_DESCRIPTION: string; export declare const REMOTE_ASSET_PATH_REFUSAL: string; export declare function putLocalClip(client: ClipwrightClient, bytes: Uint8Array, path: string, meta: { role: z.infer["role"]; name: string; analysis_only?: true; }, put?: typeof fetch): Promise; export declare function withPoll(analysis: T): T & { poll?: { tool: "get_reference_analysis"; arguments: { analysis_id: string; wait_seconds: number; }; retry_after_seconds: number; }; }; export declare const REFERENCE_INCLUDES: readonly ["profile", "frames"]; export declare const REFERENCE_OMITTED_NOTE: string; export declare function lightAnalysis(analysis: T, include?: readonly string[]): T | (Omit & { omitted: { fields: string[]; note: string; }; }); export declare function withProfilePoll(profile: T): T & { poll?: { tool: "get_creator_profile"; arguments: { profile_id: string; wait_seconds: number; }; retry_after_seconds: number; }; }; export declare function withTrendPoll(search: T, request: A): T & { poll?: { tool: "find_trends"; arguments: A; retry_after_seconds: number; }; }; export declare const CREATOR_START_WAIT_SECONDS = 40; export declare const MAX_INLINE_FRAMES = 8; export declare const THUMBNAIL_MAX_BYTES = 300000; export declare function generationThumbnails(run: { state: string; generation?: { thumbnail_urls?: string[] | undefined; } | undefined; }, fetchImpl?: typeof fetch): Promise<{ type: "image"; data: string; mimeType: "image/jpeg"; }[]>; export declare function keyFrameImages(frames: unknown, fetchImpl?: typeof fetch): Promise<{ type: "image"; data: string; mimeType: "image/jpeg"; }[]>; export declare function createServer(client: ClipwrightClient, options?: CreateServerOptions): McpServer;