import * as v from "valibot"; import type { CustomBlockErrorInfo } from "../errors.js"; export declare const customBlockQueryDataSourceErrorCodeSchema: v.StringSchema; export type CustomBlockQueryDataSourceErrorCode = "query_data_source_failed" | "unknown_data_source_key" | "unmapped_data_source" | (string & {}); export type CustomBlockQueryDataSourceErrorInfo = CustomBlockErrorInfo; export declare const customBlockQueryDataSourceErrorInfoSchema: v.ObjectSchema<{ readonly code: v.StringSchema; readonly message: v.StringSchema; readonly isRetryable: v.BooleanSchema; }, undefined>; /** * Message sent by the host to the sandbox in response to a `queryDataSource` request. */ export declare const queryDataSourceResultMessageSchema: v.ObjectSchema<{ readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>; readonly requestId: v.StringSchema; readonly snapshotId: v.StringSchema; readonly items: v.ArraySchema | undefined>; readonly propertiesById: v.RecordSchema, v.OptionalSchema, v.NumberSchema, v.BooleanSchema, v.VariantSchema<"type", [v.ObjectSchema<{ readonly type: v.LiteralSchema<"date", undefined>; readonly start_date: v.StringSchema; readonly reminder: v.OptionalSchema; readonly value: v.NumberSchema; readonly time: v.StringSchema; readonly defaultTimeZone: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly unit: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"daterange", undefined>; readonly start_date: v.StringSchema; readonly end_date: v.StringSchema; readonly reminder: v.OptionalSchema; readonly value: v.NumberSchema; readonly time: v.StringSchema; readonly defaultTimeZone: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly unit: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"datetime", undefined>; readonly start_date: v.StringSchema; readonly start_time: v.StringSchema; readonly time_zone: v.OptionalSchema, undefined>; readonly reminder: v.OptionalSchema; readonly value: v.NumberSchema; readonly time: v.StringSchema; readonly defaultTimeZone: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>; readonly value: v.NumberSchema; }, undefined>], undefined>, v.ObjectSchema<{ readonly unit: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"datetimerange", undefined>; readonly start_date: v.StringSchema; readonly start_time: v.StringSchema; readonly end_date: v.StringSchema; readonly end_time: v.StringSchema; readonly time_zone: v.OptionalSchema, undefined>; readonly reminder: v.OptionalSchema; readonly value: v.NumberSchema; readonly time: v.StringSchema; readonly defaultTimeZone: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>; readonly value: v.NumberSchema; }, undefined>], undefined>, v.ObjectSchema<{ readonly unit: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; }, undefined>], undefined>, v.ArraySchema, undefined>, v.ArraySchema; readonly table: v.StringSchema; }, undefined>, undefined>], undefined>, undefined>, undefined>; }, undefined>, undefined>; readonly hasMore: v.BooleanSchema; readonly error: v.OptionalSchema; readonly message: v.StringSchema; readonly isRetryable: v.BooleanSchema; }, undefined>, undefined>; }, undefined>; export type QueryDataSourceResultMessage = v.InferOutput; //# sourceMappingURL=queryDataSourceResult.d.ts.map