import type { Logger } from "tslog"; /** * Default timeout for external client API calls (30 seconds). * Override with `ROLEBOX_CLIENT_TIMEOUT_MS` env var. */ export declare const DEFAULT_TIMEOUT_MS: number; /** * Wraps a promise with a timeout guard. * * - If the promise settles within `ms`: returns the resolved value. * - If the timeout fires first: logs a warning with `label` and returns `null`. * - If the underlying promise rejects: re-throws the error (caller's * existing try/catch handles it). * * @param promise - The promise to guard. * @param ms - Timeout in milliseconds. * @param label - Human-readable label for log messages. * @param log - Logger instance used to emit warning on timeout. * @returns The resolved value, or `null` if the timeout elapsed. */ export declare function withTimeout(promise: Promise, ms: number, label: string, log: Logger): Promise; //# sourceMappingURL=timeout.d.ts.map