import type { DataContract } from './Search'; import type { TokenRecord, TokenState } from './Token'; import type { InputDefinition } from './DashboardJSON'; import type { TokenTraceConfig } from './TokenTrace'; export type InputAlignment = 'top' | 'center' | 'bottom'; export type RawInputValue = string | number | boolean | string[] | number[] | boolean[] | null; export interface InputConfig { dataContract?: DataContract; optionsSchema?: Record; editorConfig?: unknown[]; baseShape?: Record; label?: string; description?: string; tokenPrefix?: string; icon?: (...args: any[]) => JSX.Element; includeInToolbar?: boolean; showTitle?: boolean; showToken?: boolean; withInputLabel?: boolean; fitToWidth?: boolean; getInputName?: (props: { input?: InputDefinition; }) => string | undefined; supports?: string[]; } export interface InputStatics { config?: InputConfig; tokenTraceConfig?: TokenTraceConfig; valueToTokens?: (value: RawInputValue | undefined, { token, prefix, suffix, }: { token?: string; prefix?: string; suffix?: string; }) => TokenRecord; canHandleValue?: (value: unknown) => boolean; tokensToValue?: (props: { tokens?: TokenState; tokenName?: string; tokenNamespace?: string; }) => RawInputValue; validate?: (props: { options?: Record; }) => { errorMessages: string[]; }; showTitleAndDescription?: boolean; showProgressBar?: boolean; showLastUpdated?: boolean; showDragHandle?: boolean; showCornerRadiusEditor?: boolean; showHideInViewMode?: boolean; canSetCustomUrl?: boolean; showDrilldown?: boolean; showSkipButton?: boolean; canSetTokens?: ('static' | 'dynamic')[]; canSetTimeRange?: boolean; canResetTokens?: boolean; canUnsetTokens?: boolean; canSwitchToTab?: boolean; canChooseDatasourceFields?: boolean; interactionsFilterMetadata?: string[]; tokenMetadataProp?: string; } //# sourceMappingURL=Inputs.d.ts.map