import { DownloadMetaFnParams, DownloadDataFnParams, UploadMetaFnParams, UploadDataFnParams } from './types';
import { Connection } from '@fireproof/connect';
import PartySocket from 'partysocket';
import { TaskManager } from './task-manager';
export interface ConnectPartyKitParams {
    name: string;
    host: string;
}
export declare class ConnectPartyKit extends Connection {
    name: string;
    host: string;
    party: PartySocket;
    messagePromise: Promise<Uint8Array[]>;
    messageResolve?: (value: Uint8Array[] | PromiseLike<Uint8Array[]>) => void;
    taskManager: TaskManager;
    constructor(params: ConnectPartyKitParams);
    connectStorage(): Promise<void>;
    dataUpload(bytes: Uint8Array, params: UploadDataFnParams): Promise<void>;
    dataDownload(params: DownloadDataFnParams): Promise<null>;
    metaUpload(bytes: Uint8Array, params: UploadMetaFnParams): Promise<null>;
    metaDownload(params: DownloadMetaFnParams): Promise<Uint8Array[]>;
}
