type IdleResult = { type: 'idle'; }; type LoadingResult = { type: 'loading'; }; export type ValidResult = { type: 'valid'; validatedAql: string; }; export type InvalidResult = { error: string; type: 'invalid'; }; export type AqlValidationResult = IdleResult | LoadingResult | ValidResult | InvalidResult; export type AqlValidationResponse = { isValid: boolean; message: string | null; }; export type UseValidateAqlTextState = { debouncedValidation: (value: string | undefined) => Promise; lastValidationResult: AqlValidationResult; validateAqlText: (aql: string) => Promise<'error' | undefined>; }; export declare const SEARCH_DEBOUNCE = 350; export declare const useValidateAqlText: (workspaceId: string, initialValue: string) => UseValidateAqlTextState; export {};