import { ClientOptions } from "../api/client"; import { CreatePromptRequest, CreateUploadResponse, DisplayConfig, ExecuteBackgroundResponse, Prompt, Run, Session, User } from "../api/types"; import { InputParams, InputToSerializedParamValues } from "../params/params_input"; import { SerializedParamValues } from "../params/params_serialized"; export type RuntimeInterface = { execute(slug: string, paramValues: SerializedParamValues, resources?: Record | undefined | null, opts?: ClientOptions): Promise>; executeBackground(slug: string, paramValues: SerializedParamValues, resources?: Record | undefined | null, opts?: ClientOptions): Promise; executeBackgroundWithCacheInfo(slug: string, paramValues: SerializedParamValues, resources?: Record | undefined | null, opts?: ClientOptions): Promise; executeRunbook(slug: string, paramValues: SerializedParamValues, opts?: ClientOptions): Promise>; executeRunbookBackground(slug: string, paramValues: SerializedParamValues, opts?: ClientOptions): Promise; promptBackground(prompt: CreatePromptRequest): Promise; waitForPrompt(promptID: string): Promise>; display(display: DisplayConfig): Promise; sleep(durationMs: number): Promise; logChunks(output: string): void; getPrompt(id: string): Promise; getUser(id: string): Promise; fetchBlob(url: string): Promise; createUpload(fileName: string, sizeBytes: number): Promise; uploadFileContents(url: string, payload: Blob): Promise; generateIDToken(audience: string): Promise; }; export type TaskRuntime = "standard" | "workflow"; export type RuntimeKind = TaskRuntime | "dev"; export declare const registerRuntime: (kind: RuntimeKind, runtime: RuntimeInterface) => () => void; export declare const getRuntime: () => RuntimeInterface;