declare function withTimeout(promise: Promise, timeoutMs: number | undefined, createError: () => unknown): Promise; declare function withSolanaTimeout(promise: Promise, timeoutMs: number | undefined, message: string): Promise; export { withSolanaTimeout, withTimeout };