import type { Lix } from "../../lix/open-lix.js"; /** * Key value storage interface. */ export type LspEnvironment = { getLix(args: { id: string; }): Promise; /** * If a lix exists on the server. */ hasLix(args: { id: string; }): Promise; /** * Set's a lix. */ setLix(args: { id: string; blob: Blob; }): Promise; /** * Opens a lix. * * The server will return a connection id that can be used to close the lix. */ openLix(args: { id: string; }): Promise<{ lix: Lix; id: string; connectionId: string; }>; /** * Closes a lix. * * The connection id is returned when opening a lix. * * @example * const { lix, connectionId } = await openLix({ id: 'my-lix' }); * // do stuff with the lix * await closeLix({ connectionId }); */ closeLix(args: { id: string; connectionId: string; }): Promise; }; export type LsaEnvironment = LspEnvironment; //# sourceMappingURL=environment.d.ts.map