import type { dh } from '@deephaven/jsapi-types'; /** Default timeout for fetching a variable definition */ export declare const FETCH_TIMEOUT = 10000; /** * Fetch the definition for a variable given a connection. Waits for the next * field update event and resolves if the variable is found in the created * variables. * @param connection Connection to get the variable from * @param name Name of the definition to fetch * @param timeout Timeout for the fetch * @returns Promise that resolves to the variable definition if found in the next field update, * or rejects if the variable is not found in that update or if the timeout is exceeded */ export declare function fetchVariableDefinition(connection: dh.IdeConnection, name: string, timeout?: number): Promise; /** * Fetch the definition for a variable given a connection. Waits for the next * field update event and resolves if a variable matching the predicate is found * in the created variables. * @param connection Connection to get the variable from * @param predicate Predicate function to test each variable definition * @param timeout Timeout for the fetch * @param errorMessage Optional error message for timeout and not found errors * @returns Promise that resolves to the variable definition if found in the next field update, * or rejects if no matching variable is found in that update or if the timeout is exceeded */ export declare function fetchVariableDefinitionByPredicate(connection: dh.IdeConnection, predicate: (definition: dh.ide.VariableDefinition) => boolean, timeout?: number, errorMessage?: string): Promise; //# sourceMappingURL=ConnectionUtils.d.ts.map