import { Result } from "@adviser/cement"; import { type } from "arktype"; export declare const ClerkClaimParams: import("arktype/internal/variants/object.ts").ObjectType<{ nick?: string | undefined; email: string; email_verified: boolean; external_id?: string | null | undefined; first: string; image_url: string; last: string; name: string | null; public_meta: unknown; }, {}>; export type ClerkClaimParams = typeof ClerkClaimParams.infer; export declare const ClerkClaim: import("arktype/internal/variants/object.ts").ObjectType<{ azp?: string | undefined; exp?: number | undefined; iat?: number | undefined; iss?: string | undefined; jti?: string | undefined; nbf?: number | undefined; params: { nick?: string | undefined; email: string; email_verified: boolean; external_id?: string | null | undefined; first: string; image_url: string; last: string; name: string | null; public_meta: unknown; }; role: string; sub: string; userId: string; aud?: string | string[] | undefined; app_metadata?: unknown; }, {}>; export type ClerkClaim = typeof ClerkClaim.infer; export declare const dashAuthType: import("arktype/internal/variants/object.ts").ObjectType<{ type: "clerk" | "device-id" | "ucan"; token: string; }, {}>; export declare const vibeUserEnv: import("arktype/internal/variants/object.ts").ObjectType, {}>; export declare const VibeCodeBlock: import("arktype/internal/variants/object.ts").ObjectType<{ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-block"; lang: string; content: string; }, {}>; export type VibeCodeBlock = typeof VibeCodeBlock.infer; export declare function isVibeCodeBlock(obj: unknown): obj is VibeCodeBlock; export declare const VibeCodeRef: import("arktype/internal/variants/object.ts").ObjectType<{ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "code-ref"; refId: string; }, {}>; export declare const VibeStrAssetBlock: import("arktype/internal/variants/object.ts").ObjectType<{ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-block"; content: string; }, {}>; export declare const VibeStrAssetRef: import("arktype/internal/variants/object.ts").ObjectType<{ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "str-asset-ref"; refId: string; }, {}>; export declare const VibeUint8AssetBlock: import("arktype/internal/variants/object.ts").ObjectType<{ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-block"; content: Uint8Array; }, {}>; export declare const VibeUint8AssetRef: import("arktype/internal/variants/object.ts").ObjectType<{ filename: string; entryPoint?: boolean | undefined; mimetype?: string | undefined; type: "uint8-asset-ref"; refId: string; }, {}>; export declare const vibeFile: import("arktype/internal/variants/object.ts").ObjectType<{ 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 VibeFile = typeof vibeFile.infer; export declare const resError: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.res-error"; error: { message: string; code?: string | undefined; }; }, {}>; export type ResError = typeof resError.infer; export declare function isResError(obj: unknown): obj is ResError; export declare function getResErrorMessage(e: ResError): string; export declare function mkResError(message: string, code?: string): VibesDiyError; export type CodeID = string; export type EnvID = string; export declare const FSMode: import("arktype/internal/variants/string.ts").StringType<"dev" | "production", {}>; export declare const AppSlugUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{ appSlug: string; ownerHandle: string; }, {}>; export type AppSlugUserSlug = typeof AppSlugUserSlug.infer; export declare const OptAppSlugUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{ appSlug?: string | undefined; ownerHandle: string; }, {}>; export type OptAppSlugUserSlug = typeof OptAppSlugUserSlug.infer; export declare const AppSlugOptUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{ appSlug: string; ownerHandle?: string | undefined; }, {}>; export type AppSlugOptUserSlug = typeof AppSlugOptUserSlug.infer; export declare const OptAppSlugOptUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{ appSlug?: string | undefined; ownerHandle?: string | undefined; }, {}>; export type OptAppSlugOptUserSlug = typeof OptAppSlugOptUserSlug.infer; export declare const NeedOneAppSlugUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{ appSlug: string; ownerHandle: string; } | { appSlug?: string | undefined; ownerHandle: string; } | { appSlug: string; ownerHandle?: string | undefined; } | { appSlug?: string | undefined; ownerHandle?: string | undefined; }, {}>; export type NeedOneAppSlugUserSlug = typeof NeedOneAppSlugUserSlug.infer; export declare const msgBase: import("arktype/internal/variants/object.ts").ObjectType<{ tid: string; src: string; dst: string; ttl: number; payload: unknown; }, {}>; export type msgBaseType = typeof msgBase.infer; export declare function isMsgBase(obj: unknown): obj is msgBaseType; export interface MsgBase extends Omit { payload: T; } export interface InMsgBase { readonly tid: string; readonly src?: string; readonly dst?: string; readonly ttl?: number; readonly payload: T; } export interface MsgBox extends Omit { payload: T; } export type MsgBaseCfg = Pick; export type MsgBaseParam = Partial; export type VibesDiyError = ResError & Error; export type ResultVibesDiy = Result; export declare const w3cMessageEventBox: import("arktype/internal/variants/object.ts").ObjectType<{ type: "MessageEvent"; event: { data?: unknown; origin?: string | null | undefined; lastEventId?: string | undefined; source?: unknown; ports?: unknown; }; }, {}>; export declare const w3cCloseEventBox: import("arktype/internal/variants/object.ts").ObjectType<{ type: "CloseEvent"; event: { wasClean: boolean; code: number; reason: string; }; }, {}>; export declare const w3cErrorEventBox: import("arktype/internal/variants/object.ts").ObjectType<{ type: "ErrorEvent"; event: { message?: string | undefined; filename?: string | undefined; lineno?: number | undefined; colno?: number | undefined; error?: unknown; }; }, {}>; export declare const w3CWebSocketEvent: import("arktype/internal/variants/object.ts").ObjectType<{ type: "MessageEvent"; event: { data?: unknown; origin?: string | null | undefined; lastEventId?: string | undefined; source?: unknown; ports?: unknown; }; } | { type: "CloseEvent"; event: { wasClean: boolean; code: number; reason: string; }; } | { type: "ErrorEvent"; event: { message?: string | undefined; filename?: string | undefined; lineno?: number | undefined; colno?: number | undefined; error?: unknown; }; }, {}>; export type W3CWebSocketEvent = typeof w3CWebSocketEvent.infer; export type W3CWebSocketErrorEvent = typeof w3cErrorEventBox.infer; export type W3CWebSocketMessageEvent = typeof w3cMessageEventBox.infer; export type W3CWebSocketCloseEvent = typeof w3cCloseEventBox.infer; export declare const Pager: import("arktype/internal/variants/object.ts").ObjectType<{ limit?: number | undefined; cursor?: string | undefined; }, {}>; export type Pager = typeof Pager.infer; export declare const ForeignInfo: import("arktype/internal/variants/object.ts").ObjectType<{ givenEmail?: string | undefined; claims?: { azp?: string | undefined; exp?: number | undefined; iat?: number | undefined; iss?: string | undefined; jti?: string | undefined; nbf?: number | undefined; params: { nick?: string | undefined; email: string; email_verified: boolean; external_id?: string | null | undefined; first: string; image_url: string; last: string; name: string | null; public_meta: unknown; }; role: string; sub: string; userId: string; aud?: string | string[] | undefined; app_metadata?: unknown; } | undefined; }, {}>; export type ForeignInfo = typeof ForeignInfo.infer; export declare const GrantListBase: import("arktype/internal/variants/object.ts").ObjectType<{ appSlug: string; ownerHandle: string; auth: { type: "clerk" | "device-id" | "ucan"; token: string; }; pager: { limit?: number | undefined; cursor?: string | undefined; }; }, {}>; export declare const Role: import("arktype/internal/variants/string.ts").StringType<"editor" | "submitter" | "viewer", {}>; export type Role = typeof Role.infer; export declare function parseArrayResult(items: unknown, match: T): Result[]; export interface ParseArrayWarningResult { filtered: T[]; warning: { idx: number; txt: string; }[]; } export declare function parseArrayWarning(items: unknown, match: T): ParseArrayWarningResult; export declare function parseArray(items: unknown, match: T): T["infer"][]; export declare const resProgress: import("arktype/internal/variants/object.ts").ObjectType<{ type: "vibes.diy.res-progress"; stage?: string | undefined; bytes?: number | undefined; partNumber?: number | undefined; }, {}>; export type ResProgress = typeof resProgress.infer; export declare function isResProgress(obj: unknown): obj is ResProgress;