import './explicit-resource-management-polyfill'; /** * Run function on scope exit. Go style. * * @example * ```ts * { * using _ = defer(() => console.log('exiting')); * * ... * } */ export declare const defer: (fn: () => void) => Disposable; /** * Run async function on scope exit. Go style. * * @example * ```ts * { * await using _ = deferAsync(async () => console.log('exiting')); * * ... * } */ export declare const deferAsync: (fn: () => Promise) => AsyncDisposable; //# sourceMappingURL=defer.d.ts.map