import type { AgentDataExport } from '@storacha/access/types'; import type { ServiceConfig } from './service.js'; import { Client } from '@storacha/client'; import { Account } from '@storacha/client/account'; import { Space } from '@storacha/client/space'; import { Driver } from '@storacha/access/drivers/types'; export * from '@storacha/client/types'; export { Client, Account, Space, ServiceConfig }; export type Store = Driver; export declare const STORE_SAVE_EVENT = "store:save"; export interface ContextState { /** * The w3up client representing the current user agent (this device). */ client?: Client; /** * Accounts this agent is authorized to act as. */ accounts: Account[]; /** * Spaces available to this agent. */ spaces: Space[]; } export interface ContextActions { /** * Reset local store (deleting existing agent), logging the user out. */ logout: () => Promise; } export interface CreateClientOptions extends ServiceConfig { events?: EventTarget; receiptsEndpoint?: URL; } /** * Create an agent for managing identity. It uses RSA keys that are stored in * IndexedDB as unextractable `CryptoKey`s. */ export declare function createClient(options?: CreateClientOptions): Promise<{ client: Client; events: EventTarget; store: Store; }>; //# sourceMappingURL=index.d.ts.map