import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export declare const TypeEnum: { readonly Text: "text"; readonly Checkbox: "checkbox"; readonly KeyValueMap: "key_value_map"; readonly Select: "select"; }; export type TypeEnum = ClosedEnum; export type Option = { label: string; value: string; }; export type DestinationSchemaField = { /** * The config key used to store and retrieve the field value. Matches the key in the destination's config or credentials object. */ key: string; type: TypeEnum; label?: string | undefined; description?: string | undefined; required: boolean; /** * Indicates if the field contains sensitive information. */ sensitive?: boolean | undefined; /** * Default value for the field. */ default?: string | undefined; /** * Minimum length for a text input. */ minlength?: number | undefined; /** * Maximum length for a text input. */ maxlength?: number | undefined; /** * Regex pattern for validation (compatible with HTML5 pattern attribute). */ pattern?: string | undefined; /** * Available options for select fields. */ options?: Array