/** * Miscellaneous helper utilities ported from triangle-js-sdks. */ /** * Return a promise that resolves after `ttl` milliseconds. */ export declare function delay(ttl: number): Promise; /** * Ponyfill for `Promise.withResolvers()` (available natively from ES2024). */ export declare function promiseWithResolvers(): { promise: Promise; resolve: (value: T) => void; reject: (reason: unknown) => void; }; /** * Build an action string from a method name and a suffix. * * Example: `composeAction('host_account_get', 'request')` produces * `'host_account_get_request'`. */ export declare function composeAction(method: M, suffix: S): `${M}_${S}`; /** * Extract a human-readable message from an unknown thrown value. */ export declare function extractErrorMessage(err: unknown): string; //# sourceMappingURL=helpers.d.ts.map