import Schema from "@deepseek-ai/schemastery"; import { type CrocoProjectSnapshot, type ProjectStyle } from "./lib/preproduction-workspace.ts"; import { type VideoUnitImageAction, type VideoUnitImageTarget } from "./lib/studio-video-unit-image-plan.ts"; import { type CharacterLibraryPaths } from "./lib/providers.ts"; export declare const name = "croco-hyperframes"; export declare const inject: string[]; export interface Config { profileName: string; profileDirectory: string; projectDirectoryName: string; cliVersion: string; host: string; port: number; startupTimeoutMs: number; maxSourceChars: number; maxUploadBytes: number; maxVideoReferences: number; preferredVideoUnitSeconds: number; videoProbeExecutable?: string; maxVideoImportBytes?: number; videoBatchConcurrency?: number; videoExportMaxBytes?: number; videoRenderTimeoutMs?: number; } export declare const Config: Schema; /** * Resolve an explicit Project Folder or the valid Croco project at the task Workspace root. * @param projectFolder - Explicit user-selected folder, which always takes precedence. * @param workspaceRoot - Current task Workspace used only when no explicit folder exists. * @returns The folder to open, or `undefined` when the Workspace is not a Croco project. */ export declare function resolveOpenStudioProjectFolder(projectFolder: string | undefined, workspaceRoot: string): Promise; /** * Resolve the browser Origin from the actual Studio URL while retaining the configured host. * @param studioUrl - Successful HyperFrames Studio URL containing the actual preview port. * @param configuredHost - Croco's configured local preview host. * @returns The only browser Origin trusted for the active preview. */ export declare function resolvePreviewOrigin(studioUrl: string, configuredHost: string): string; interface DirectStudioImageRequest { action: "generate_all" | "generate_entity" | "optimize_entity"; projectFolder: string; entityId?: string; editInstruction?: string; } /** Execute the deterministic Studio image pipeline without entering the Agent inbox. */ export declare function executeStudioImageAction(ctx: any, request: DirectStudioImageRequest, signal: AbortSignal): Promise>; export interface StudioVideoUnitImageRequest { projectFolder: string; expectedRevision: number; action: VideoUnitImageAction; targets: VideoUnitImageTarget[]; editInstruction?: string; } /** Generate, regenerate, or Image Edit selected Storyboard and keyframe cards. */ export declare function executeStudioVideoUnitImageGeneration(ctx: any, request: StudioVideoUnitImageRequest, signal: AbortSignal): Promise>; /** Backfill every missing Video Unit prerequisite through the existing Studio generators. */ export declare function executeStudioVideoUnitAssetPreparation(ctx: any, projectFolder: string, signal: AbortSignal): Promise>; /** Generate or replace one character Reference Voice without regenerating its image. */ export declare function executeStudioVoiceAction(ctx: any, projectFolder: string, entityId: string, signal: AbortSignal, regenerate?: boolean): Promise>; /** Convert one enabled style-library record into a durable project snapshot. * @param payload - Canonical `style_get` result. * @returns The project-owned style value, including a resolved sample image path. */ export declare function libraryProjectStyle(payload: Record): Promise; /** Save one project character and bind the project entity to the new local entry. */ export declare function saveProjectCharacterToLocalLibrary(projectFolder: string, entityId: string, expectedRevision: number, characterLibrary?: CharacterLibraryPaths): Promise<{ state: CrocoProjectSnapshot; characterId: string; }>; export declare function apply(ctx: any, config: Config): void; export {};