frontend/.pnpm-store/v3/files/5a/8c3e901e1eb1b700fd374b6b5d739ef62f8bf45dd603ce7deecdb04b4ddaf393a8486fc6502b44e908bf9203a9eb6304b290a45cb9ca6a3751878925521fc1

16 lines
571 B
Plaintext

import Storage, { StorageResponse } from './storage';
export interface ServerStorageOptions extends RequestInit {
url: string;
then?: (data: any) => any[][];
handle?: (response: Response) => Promise<any>;
total?: (data: any) => number;
data?: (opts: ServerStorageOptions) => Promise<StorageResponse>;
}
declare class ServerStorage extends Storage<ServerStorageOptions> {
private readonly options;
constructor(options: ServerStorageOptions);
private handler;
get(options?: ServerStorageOptions): Promise<StorageResponse>;
}
export default ServerStorage;