import type { ByteSource } from '../io/types.ts';
/** Work in flight on one resource, awaited before it is released. */
export declare class Activity {
    private count;
    private waiters;
    acquire(): () => void;
    wait(): Promise<void>;
    /** Count `source` in flight until it ends or is closed. */
    hold(source: ByteSource): ByteSource;
}
//# sourceMappingURL=activity.d.ts.map