@pgxsinkit/pgwasm
Version:
14 lines • 753 B
TypeScript
import type { OwnedFileName, RepackedFileHandle, RepackedPort, RepackedPortEntry } from "./core/port";
export declare class FileRepackedPort implements RepackedPort {
#private;
/**
* @param directory The directory this store owns in full. It is created on first use, with every
* parent, exactly as the OPFS port's caller creates its directory handle with `create: true`.
*/
constructor(directory: string);
/** The directory this port reads and writes. Absolute or relative, exactly as it was given. */
get directory(): string;
enumerate(_label: string): Promise<readonly RepackedPortEntry[]>;
acquire(name: OwnedFileName, _label: string): Promise<RepackedFileHandle>;
}
//# sourceMappingURL=file-port.d.ts.map