export declare const LEGACY_CAPABILITY_ALIASES: { readonly chat: "codegen"; readonly app: "runtime"; }; export declare const PromptLLMStyle: import("arktype/internal/variants/string.ts").StringType<"codegen" | "img" | "runtime", {}>; export type PromptLLMStyle = typeof PromptLLMStyle.infer; export declare function isPromptLLMStyle(obj: unknown): obj is PromptLLMStyle; export type CanonicalModelUsage = "codegen" | "runtime" | "img"; export declare function canonicalModelUsage(usage: T): CanonicalModelUsage | T; export declare const PromptFSStyle: import("arktype/internal/variants/string.ts").StringType<"fs-set" | "fs-update", {}>; export type PromptFSStyle = typeof PromptFSStyle.infer; export declare function isPromptFSStyle(obj: unknown): obj is PromptFSStyle; export declare const PromptStyle: import("arktype/internal/variants/string.ts").StringType<"codegen" | "fs-set" | "fs-update" | "img" | "runtime", {}>; export type PromptStyle = typeof PromptStyle.infer; export declare const ModelCapability: import("arktype/internal/variants/string.ts").StringType<"app" | "chat" | "codegen" | "img" | "img-edit" | "runtime", {}>; export type ModelCapability = typeof ModelCapability.infer; export declare const Model: import("arktype/internal/variants/object.ts").ObjectType<{ id: string; name: string; description: string; featured?: boolean | undefined; preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined; fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined; supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined; imageInput?: boolean | undefined; }, {}>; export type Model = typeof Model.infer; export declare const reqOpenChat: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-open-chat"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; appSlug?: string | undefined; ownerHandle?: string | undefined; chatId?: string | undefined; prompt?: string | undefined; dryRun?: boolean | undefined; deferFire?: boolean | undefined; mode: "codegen" | "fs-set" | "fs-update" | "img" | "runtime"; }, {}>; export type ReqOpenChat = typeof reqOpenChat.infer; export declare const resOpenChat: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.res-open-chat"; appSlug: string; ownerHandle: string; chatId: string; mode: "codegen" | "fs-set" | "fs-update" | "img" | "runtime"; firstTurnFired?: boolean | undefined; }, {}>; export type ResOpenChat = typeof resOpenChat.infer; export declare function isResOpenChat(obj: unknown): obj is ResOpenChat; export declare const selectedSlotInput: import("arktype/internal/variants/object.ts").ObjectType<{ kind: "version"; fsId: string; } | { kind: "draft"; files: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; }, {}>; export type SelectedSlotInput = typeof selectedSlotInput.infer; export declare const slotMute: import("arktype/internal/variants/string.ts").StringType<"off" | "on", {}>; export declare const slotConfig: import("arktype/internal/variants/object.ts").ObjectType<{ original?: "off" | "on" | undefined; selected?: "off" | "on" | undefined; last_edit?: "off" | "on" | undefined; previous?: "off" | "on" | undefined; compaction?: "off" | "on" | undefined; }, {}>; export type SlotConfig = typeof slotConfig.infer; export declare const reqCreationPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-prompt-chat-section"; mode: "codegen"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; prompt: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; dryRun?: boolean | undefined; dryRunPreAllocate?: boolean | undefined; ownerHandle?: string | undefined; appSlug?: string | undefined; selected?: { kind: "version"; fsId: string; } | { kind: "draft"; files: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; } | undefined; slots?: { original?: "off" | "on" | undefined; selected?: "off" | "on" | undefined; last_edit?: "off" | "on" | undefined; previous?: "off" | "on" | undefined; compaction?: "off" | "on" | undefined; } | undefined; variant?: "access-wizard" | "discuss" | "upgrade-backend" | undefined; focusPath?: string | undefined; apiKey?: string | undefined; }, {}>; export declare function isReqCreationPromptChatSection(obj: unknown): obj is typeof reqCreationPromptChatSection.infer; export declare function isAccessWizardRequest(obj: unknown): obj is typeof reqCreationPromptChatSection.infer & { variant: "access-wizard"; }; export declare function isUpgradeBackendRequest(obj: unknown): obj is typeof reqCreationPromptChatSection.infer & { variant: "upgrade-backend"; }; export declare function isDiscussRequest(obj: unknown): obj is typeof reqCreationPromptChatSection.infer & { variant: "discuss"; }; export declare const reqPromptApplicationChatSection: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-prompt-chat-section"; mode: "runtime"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; prompt: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; apiKey?: string | undefined; }, {}>; export declare function isReqPromptApplicationChatSection(obj: unknown): obj is typeof reqPromptApplicationChatSection.infer; export declare const reqPromptImageChatSection: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-prompt-chat-section"; mode: "img"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; prompt: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; inputImageBase64?: string | undefined; imgTarget?: { dbName: string; docId: string; regen?: boolean | undefined; sourceKey?: string | undefined; } | undefined; apiKey?: string | undefined; }, {}>; export declare function isReqPromptImageChatSection(obj: unknown): obj is typeof reqPromptImageChatSection.infer; export declare const FSUpdate: import("arktype/internal/variants/object.ts").ObjectType<{ update: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; remove: { filename: string; }[]; }, {}>; export type FSUpdate = typeof FSUpdate.infer; export declare function isFSUpdate(obj: unknown): obj is FSUpdate; export declare const reqPromptFSUpdateChatSection: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-prompt-chat-section"; mode: "fs-update"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; refFsId?: string | undefined; fsUpdate: { update: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; remove: { filename: string; }[]; }; }, {}>; export type ReqPromptFSUpdateChatSection = typeof reqPromptFSUpdateChatSection.infer; export declare function isReqPromptFSUpdateChatSection(obj: unknown): obj is ReqPromptFSUpdateChatSection; export declare const reqPromptFSSetChatSection: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-prompt-chat-section"; mode: "fs-set"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; fsSet: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; }, {}>; export type ReqPromptFSSetChatSection = typeof reqPromptFSSetChatSection.infer; export declare function isReqPromptFSSetChatSection(obj: unknown): obj is ReqPromptFSSetChatSection; export declare const reqPromptLLMChatSection: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-prompt-chat-section"; mode: "codegen"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; prompt: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; dryRun?: boolean | undefined; dryRunPreAllocate?: boolean | undefined; ownerHandle?: string | undefined; appSlug?: string | undefined; selected?: { kind: "version"; fsId: string; } | { kind: "draft"; files: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; } | undefined; slots?: { original?: "off" | "on" | undefined; selected?: "off" | "on" | undefined; last_edit?: "off" | "on" | undefined; previous?: "off" | "on" | undefined; compaction?: "off" | "on" | undefined; } | undefined; variant?: "access-wizard" | "discuss" | "upgrade-backend" | undefined; focusPath?: string | undefined; apiKey?: string | undefined; } | { type: "vibes.diy.req-prompt-chat-section"; mode: "runtime"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; prompt: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; apiKey?: string | undefined; } | { type: "vibes.diy.req-prompt-chat-section"; mode: "img"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; prompt: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; inputImageBase64?: string | undefined; imgTarget?: { dbName: string; docId: string; regen?: boolean | undefined; sourceKey?: string | undefined; } | undefined; apiKey?: string | undefined; }, {}>; export type ReqPromptLLMChatSection = typeof reqPromptLLMChatSection.infer; export declare function isReqPromptLLMChatSection(obj: unknown): obj is ReqPromptLLMChatSection; export declare const reqPromptFSChatSection: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-prompt-chat-section"; mode: "fs-update"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; refFsId?: string | undefined; fsUpdate: { update: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; remove: { filename: string; }[]; }; } | { type: "vibes.diy.req-prompt-chat-section"; mode: "fs-set"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; fsSet: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; }, {}>; export type ReqPromptFSChatSection = typeof reqPromptFSChatSection.infer; export declare function isReqPromptFSChatSection(obj: unknown): obj is ReqPromptFSChatSection; export declare const reqPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-prompt-chat-section"; mode: "codegen"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; prompt: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; dryRun?: boolean | undefined; dryRunPreAllocate?: boolean | undefined; ownerHandle?: string | undefined; appSlug?: string | undefined; selected?: { kind: "version"; fsId: string; } | { kind: "draft"; files: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; } | undefined; slots?: { original?: "off" | "on" | undefined; selected?: "off" | "on" | undefined; last_edit?: "off" | "on" | undefined; previous?: "off" | "on" | undefined; compaction?: "off" | "on" | undefined; } | undefined; variant?: "access-wizard" | "discuss" | "upgrade-backend" | undefined; focusPath?: string | undefined; apiKey?: string | undefined; } | { type: "vibes.diy.req-prompt-chat-section"; mode: "runtime"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; prompt: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; apiKey?: string | undefined; } | { type: "vibes.diy.req-prompt-chat-section"; mode: "img"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; prompt: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; inputImageBase64?: string | undefined; imgTarget?: { dbName: string; docId: string; regen?: boolean | undefined; sourceKey?: string | undefined; } | undefined; apiKey?: string | undefined; } | { type: "vibes.diy.req-prompt-chat-section"; mode: "fs-update"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; refFsId?: string | undefined; fsUpdate: { update: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; remove: { filename: string; }[]; }; } | { type: "vibes.diy.req-prompt-chat-section"; mode: "fs-set"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; chatId: string; outerTid: string; fsSet: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; }, {}>; export type ReqPromptChatSection = typeof reqPromptChatSection.infer; export declare const resPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.res-prompt-chat-section"; mode: "codegen" | "fs-set" | "fs-update" | "img" | "runtime"; chatId: string; ownerHandle: string; appSlug: string; promptId: string; outerTid: string; }, {}>; export type ResPromptChatSection = typeof resPromptChatSection.infer; export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection; export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{ blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.begin"; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.end"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { given: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }[]; calculated: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; }; fsRef?: ((In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>) | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.toplevel.begin"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.toplevel.line"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.toplevel.end"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.begin"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.code.line"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.code.end"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.truncated"; sectionId: string; lang: string; path?: string | undefined; reason: string; kind: string; truncatedAtLine: number; errorCount: number; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.image"; sectionId: string; url?: string | undefined; uploadId?: string | undefined; cid?: string | undefined; mimeType?: string | undefined; size?: number | undefined; docWritten?: boolean | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.stats"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-begin"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-end"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.req"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.error"; error: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs"; fileSystem: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.dry-run-payload"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.model-resolved"; model: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.raw"; text: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs-persisted"; fsRef: (In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.system-prompt"; text: string; } | { type: "prompt.research"; version: 1; streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); researchId: string; status: "complete" | "failed" | "partial"; brief: string; sources: { url: string; finalUrl: string | null; contentType: string | null; httpStatus: number | null; backendFetchable: boolean; fetched: boolean; errorCode?: string | undefined; }[]; api: { method: string; path: string; description: string; fields: string[]; }[]; excerpts: { sourceUrl: string; text: string; locator?: string | undefined; }[]; seedRows: { sourceUrl: string; dbName: string; key: string; item: unknown; }[]; completedAt: string; errorCode?: string | undefined; }, {}>; export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer; export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.section-event"; chatId: string; promptId: string; blockSeq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); blocks: ({ blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.begin"; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.end"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { given: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }[]; calculated: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; }; fsRef?: ((In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>) | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.toplevel.begin"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.toplevel.line"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.toplevel.end"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.begin"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.code.line"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.code.end"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.truncated"; sectionId: string; lang: string; path?: string | undefined; reason: string; kind: string; truncatedAtLine: number; errorCount: number; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.image"; sectionId: string; url?: string | undefined; uploadId?: string | undefined; cid?: string | undefined; mimeType?: string | undefined; size?: number | undefined; docWritten?: boolean | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.stats"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-begin"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-end"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.req"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.error"; error: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs"; fileSystem: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.dry-run-payload"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.model-resolved"; model: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.raw"; text: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs-persisted"; fsRef: (In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.system-prompt"; text: string; } | { type: "prompt.research"; version: 1; streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); researchId: string; status: "complete" | "failed" | "partial"; brief: string; sources: { url: string; finalUrl: string | null; contentType: string | null; httpStatus: number | null; backendFetchable: boolean; fetched: boolean; errorCode?: string | undefined; }[]; api: { method: string; path: string; description: string; fields: string[]; }[]; excerpts: { sourceUrl: string; text: string; locator?: string | undefined; }[]; seedRows: { sourceUrl: string; dbName: string; key: string; item: unknown; }[]; completedAt: string; errorCode?: string | undefined; })[]; initiator?: "platform" | undefined; }, {}>; export type SectionEvent = typeof sectionEvent.infer; export declare function isSectionEvent(obj: unknown): obj is SectionEvent; export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-get-chat-response"; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; ownerHandle: string; appSlug: string; chatId?: string | undefined; promptId?: string | undefined; }, {}>; export type ReqGetChatResponse = typeof reqGetChatResponse.infer; export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse; export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{ blockSeq: number; blocks: ({ blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.begin"; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.end"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { given: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }[]; calculated: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; }; fsRef?: ((In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>) | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.toplevel.begin"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.toplevel.line"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.toplevel.end"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.begin"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.code.line"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.code.end"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.truncated"; sectionId: string; lang: string; path?: string | undefined; reason: string; kind: string; truncatedAtLine: number; errorCount: number; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.image"; sectionId: string; url?: string | undefined; uploadId?: string | undefined; cid?: string | undefined; mimeType?: string | undefined; size?: number | undefined; docWritten?: boolean | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.stats"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-begin"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-end"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.req"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.error"; error: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs"; fileSystem: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.dry-run-payload"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.model-resolved"; model: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.raw"; text: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs-persisted"; fsRef: (In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.system-prompt"; text: string; } | { type: "prompt.research"; version: 1; streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); researchId: string; status: "complete" | "failed" | "partial"; brief: string; sources: { url: string; finalUrl: string | null; contentType: string | null; httpStatus: number | null; backendFetchable: boolean; fetched: boolean; errorCode?: string | undefined; }[]; api: { method: string; path: string; description: string; fields: string[]; }[]; excerpts: { sourceUrl: string; text: string; locator?: string | undefined; }[]; seedRows: { sourceUrl: string; dbName: string; key: string; item: unknown; }[]; completedAt: string; errorCode?: string | undefined; })[]; }, {}>; export type ResChatResponseSection = typeof resChatResponseSection.infer; export declare const resChatResponseTurn: import("arktype/internal/variants/object.ts").ObjectType<{ chatId: string; promptId: string; created: string; fsId?: string | undefined; sections: { blockSeq: number; blocks: ({ blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.begin"; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.end"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { given: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }[]; calculated: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; }; fsRef?: ((In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>) | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.toplevel.begin"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.toplevel.line"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.toplevel.end"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.begin"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.code.line"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.code.end"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.truncated"; sectionId: string; lang: string; path?: string | undefined; reason: string; kind: string; truncatedAtLine: number; errorCount: number; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.image"; sectionId: string; url?: string | undefined; uploadId?: string | undefined; cid?: string | undefined; mimeType?: string | undefined; size?: number | undefined; docWritten?: boolean | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.stats"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-begin"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-end"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.req"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.error"; error: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs"; fileSystem: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.dry-run-payload"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.model-resolved"; model: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.raw"; text: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs-persisted"; fsRef: (In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.system-prompt"; text: string; } | { type: "prompt.research"; version: 1; streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); researchId: string; status: "complete" | "failed" | "partial"; brief: string; sources: { url: string; finalUrl: string | null; contentType: string | null; httpStatus: number | null; backendFetchable: boolean; fetched: boolean; errorCode?: string | undefined; }[]; api: { method: string; path: string; description: string; fields: string[]; }[]; excerpts: { sourceUrl: string; text: string; locator?: string | undefined; }[]; seedRows: { sourceUrl: string; dbName: string; key: string; item: unknown; }[]; completedAt: string; errorCode?: string | undefined; })[]; }[]; }, {}>; export type ResChatResponseTurn = typeof resChatResponseTurn.infer; export declare const resGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.res-get-chat-response"; chatId?: string | undefined; ownerHandle: string; appSlug: string; turns: { chatId: string; promptId: string; created: string; fsId?: string | undefined; sections: { blockSeq: number; blocks: ({ blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.begin"; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.end"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { given: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }[]; calculated: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; }; fsRef?: ((In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>) | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.toplevel.begin"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.toplevel.line"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.toplevel.end"; sectionId: string; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.begin"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); lineNr: number; line: string; type: "block.code.line"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.code.end"; sectionId: string; lang: string; path?: string | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.code.truncated"; sectionId: string; lang: string; path?: string | undefined; reason: string; kind: string; truncatedAtLine: number; errorCount: number; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); stats: { lines: number; bytes: number; cnt?: number | undefined; }; type: "block.image"; sectionId: string; url?: string | undefined; uploadId?: string | undefined; cid?: string | undefined; mimeType?: string | undefined; size?: number | undefined; docWritten?: boolean | undefined; } | { blockId: string; streamId: string; seq: number; blockNr: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "block.stats"; stats: { toplevel: { lines: number; bytes: number; cnt?: number | undefined; }; code: { lines: number; bytes: number; cnt?: number | undefined; }; image: { lines: number; bytes: number; cnt?: number | undefined; }; total: { lines: number; bytes: number; cnt?: number | undefined; }; }; usage: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-begin"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.block-end"; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.req"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.error"; error: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs"; fileSystem: ({ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; } | { filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; })[]; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.dry-run-payload"; request: { model?: string | undefined; messages: ({ role: "assistant" | "system" | "user"; content: ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; } | { type: "vibes_file"; uploadId: string; name: string; mimeType: string; kind: "image" | "text"; originalUploadId?: string | undefined; size?: number | undefined; })[]; } | { role: "assistant"; content: string | null; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; } | { role: "tool"; content: string; tool_call_id: string; })[]; stream?: boolean | undefined; temperature?: number | undefined; max_tokens?: number | undefined; top_p?: number | undefined; logprobs?: boolean | undefined; top_logsprobs?: number | undefined; frequency_penalty?: number | undefined; presence_penalty?: number | undefined; stop?: string | string[] | undefined; verbosity?: "high" | "low" | "max" | "medium" | undefined; modalities?: string[] | undefined; tools?: { type: "function"; function: { name: string; description?: string | undefined; parameters: unknown; }; }[] | undefined; tool_choice?: "auto" | "none" | "required" | { type: "function"; function: { name: string; }; } | undefined; }; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.model-resolved"; model: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.raw"; text: string; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.fs-persisted"; fsRef: (In: { appSlug: string; ownerHandle?: string | undefined; userSlug?: string | undefined; mode: "dev" | "production"; fsId: string; }) => import("arktype").Out<{ appSlug: string; mode: "dev" | "production"; fsId: string; ownerHandle: string; }>; } | { streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); type: "prompt.system-prompt"; text: string; } | { type: "prompt.research"; version: 1; streamId: string; chatId: string; seq: number; timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To); researchId: string; status: "complete" | "failed" | "partial"; brief: string; sources: { url: string; finalUrl: string | null; contentType: string | null; httpStatus: number | null; backendFetchable: boolean; fetched: boolean; errorCode?: string | undefined; }[]; api: { method: string; path: string; description: string; fields: string[]; }[]; excerpts: { sourceUrl: string; text: string; locator?: string | undefined; }[]; seedRows: { sourceUrl: string; dbName: string; key: string; item: unknown; }[]; completedAt: string; errorCode?: string | undefined; })[]; }[]; }[]; }, {}>; export type ResGetChatResponse = typeof resGetChatResponse.infer; export declare function isResGetChatResponse(obj: unknown): obj is ResGetChatResponse; export declare const reqGetVibeChips: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-get-vibe-chips"; auth?: { type: "clerk" | "device-id" | "ucan"; token: string; } | undefined; ownerHandle: string; appSlug: string; fsId?: string | undefined; }, {}>; export type ReqGetVibeChips = typeof reqGetVibeChips.infer; export declare function isReqGetVibeChips(obj: unknown): obj is ReqGetVibeChips; export declare const resGetVibeChips: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.res-get-vibe-chips"; ownerHandle: string; appSlug: string; chips: string[]; }, {}>; export type ResGetVibeChips = typeof resGetVibeChips.infer; export declare function isResGetVibeChips(obj: unknown): obj is ResGetVibeChips; export declare const reqGetCachedSuggestion: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-get-cached-suggestion"; auth?: { type: "clerk" | "device-id" | "ucan"; token: string; } | undefined; ownerHandle: string; appSlug: string; key: string; }, {}>; export type ReqGetCachedSuggestion = typeof reqGetCachedSuggestion.infer; export declare function isReqGetCachedSuggestion(obj: unknown): obj is ReqGetCachedSuggestion; export declare const resGetCachedSuggestion: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.res-get-cached-suggestion"; ownerHandle: string; appSlug: string; key: string; fsId?: string | undefined; targetOwnerHandle?: string | undefined; targetAppSlug?: string | undefined; }, {}>; export type ResGetCachedSuggestion = typeof resGetCachedSuggestion.infer; export declare function isResGetCachedSuggestion(obj: unknown): obj is ResGetCachedSuggestion; export declare const reqSeedStarterChips: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-seed-starter-chips"; auth?: { type: "clerk" | "device-id" | "ucan"; token: string; } | undefined; ownerHandle: string; appSlug: string; chips: string[]; leadLine?: string | undefined; }, {}>; export type ReqSeedStarterChips = typeof reqSeedStarterChips.infer; export declare function isReqSeedStarterChips(obj: unknown): obj is ReqSeedStarterChips; export declare const resSeedStarterChips: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.res-seed-starter-chips"; ownerHandle: string; appSlug: string; seededChips: string[]; }, {}>; export type ResSeedStarterChips = typeof resSeedStarterChips.infer; export declare function isResSeedStarterChips(obj: unknown): obj is ResSeedStarterChips; export declare const evtNewFsId: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.evt-new-fs-id"; ownerHandle: string; appSlug: string; fsId: string; sessionToken: string; vibeUrl: string; mode?: "dev" | "production" | undefined; }, {}>; export type EvtNewFsId = typeof evtNewFsId.infer; export declare function isEvtNewFsId(obj: unknown): obj is EvtNewFsId; export declare const evtIconGen: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.evt-icon-gen"; ownerHandle: string; appSlug: string; force?: boolean | undefined; }, {}>; export type EvtIconGen = typeof evtIconGen.infer; export declare function isEvtIconGen(obj: unknown): obj is EvtIconGen; export declare const reqListModels: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.req-list-models"; }, {}>; export type ReqListModels = typeof reqListModels.infer; export declare function isReqListModels(obj: unknown): obj is ReqListModels; export declare const resListModels: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.res-list-models"; models: { id: string; name: string; description: string; featured?: boolean | undefined; preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined; fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined; supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined; imageInput?: boolean | undefined; }[]; }, {}>; export type ResListModels = typeof resListModels.infer; export declare function isResListModels(obj: unknown): obj is ResListModels;