import type { DataPackageContext } from '../data/Types';
import type { NetworkMessage } from './NetworkMessageTypes';
export type NetworkState = {
    lastMessage: NetworkMessage;
};
export type NetworkAtom = ReturnType<typeof createNetworkAtom>;
export declare function createNetworkAtom(context: DataPackageContext): import("../core/state/Types").StateAtom<{
    lastMessage: NetworkMessage;
}, {
    requestOpened: (state: NetworkState, openedTimestamp: number) => boolean;
    headersReceived: (state: NetworkState, headersReceivedTimestamp: number, contentLength: number) => boolean;
    progress: (state: NetworkState, progressTimestamp: number, chunk: Uint8Array, loadedBytes: number, elapsedTime: number) => boolean;
    error: (state: NetworkState, error: Error) => boolean;
    done: (state: NetworkState, doneTimestamp: number) => boolean;
}>;
