import { Request } from './request.js';
export type WorkFile = {
    file: {
        path: string;
    };
};
export type Work<T> = {
    id: string;
    output?: T;
    status: 'complete' | 'queued' | 'error';
};
export declare function requestAndWaitForWorkToComplete<T extends object>(request: Request, controller?: AbortController): Promise<T>;
export declare function resolveAsArrayBuffer(request: Request): Promise<ArrayBuffer>;
export declare function resolveWorkFileAsBlob<T extends WorkFile>(request: Request, controller?: AbortController): Promise<Blob>;
