import { Connect, Identity, Inboxes, Messages, type SpaceStorageEntry } from '@graphprotocol/hypergraph'; import { type ReactNode } from 'react'; import type { Address } from 'viem'; export type HypergraphAppCtx = { logout(): void; setIdentity(identity: Connect.PrivateAppIdentity): void; invitations: Array; createSpace(params: Readonly<{ name: string; smartSessionClient?: Connect.SmartSessionClient; }>): Promise; getSmartSessionClient(): Promise; createSpaceInbox(params: Readonly<{ space: SpaceStorageEntry; isPublic: boolean; authPolicy: Inboxes.InboxSenderAuthPolicy; }>): Promise; getLatestSpaceInboxMessages(params: Readonly<{ spaceId: string; inboxId: string; }>): Promise; listPublicSpaceInboxes(params: Readonly<{ spaceId: string; }>): Promise; getSpaceInbox(params: Readonly<{ spaceId: string; inboxId: string; }>): Promise; sendSpaceInboxMessage(params: Readonly<{ message: string; spaceId: string; inboxId: string; encryptionPublicKey: string; signaturePrivateKey: string | null; authorAccountAddress: string | null; }>): Promise; createAccountInbox(params: Readonly<{ isPublic: boolean; authPolicy: Inboxes.InboxSenderAuthPolicy; }>): Promise; getLatestAccountInboxMessages(params: Readonly<{ accountAddress: string; inboxId: string; }>): Promise; getOwnAccountInboxes(): Promise; listPublicAccountInboxes(params: Readonly<{ accountAddress: string; }>): Promise; getAccountInbox(params: Readonly<{ accountAddress: string; inboxId: string; }>): Promise; sendAccountInboxMessage(params: Readonly<{ message: string; accountAddress: string; inboxId: string; encryptionPublicKey: string; signaturePrivateKey: string | null; authorAccountAddress: string | null; }>): Promise; listSpaces(): void; listInvitations(): void; acceptInvitation(params: Readonly<{ invitation: Messages.Invitation; }>): Promise; subscribeToSpace(params: Readonly<{ spaceId: string; }>): void; inviteToSpace(params: Readonly<{ space: SpaceStorageEntry; invitee: { accountAddress: Address; }; }>): Promise; getVerifiedIdentity(accountAddress: string, publicKey: string | null, appId: string | null): Promise<{ accountAddress: string; encryptionPublicKey: string; signaturePublicKey: string; }>; isConnecting: boolean; isLoadingSpaces: Record; ensureSpaceInbox(params: { spaceId: string; isPublic?: boolean; authPolicy?: Inboxes.InboxSenderAuthPolicy; index?: number; }): Promise; redirectToConnect(params: { storage: Identity.Storage; successUrl: string; connectUrl: string; redirectFn: (url: URL) => void; }): void; processConnectAuthSuccess(params: { storage: Identity.Storage; ciphertext: string; nonce: string; }): { success: true; identity: Connect.PrivateAppIdentity; } | { success: false; error: string; }; syncServerUri: string; logInvalidResults: boolean; }; export declare const HypergraphAppContext: import("react").Context; export declare function useHypergraphApp(): HypergraphAppCtx; export declare function useHypergraphAuth(): { authenticated: boolean; identity: Connect.PrivateAppIdentity | null; privyIdentity: Connect.PrivatePrivyAppIdentity | null; }; export type HypergraphAppProviderProps = Readonly<{ storage?: Identity.Storage; syncServerUri?: string; chainId?: number; children: ReactNode; appId: string; logInvalidResults?: boolean; apiOrigin?: string; }>; export declare function HypergraphAppProvider({ storage, syncServerUri, chainId, appId, children, logInvalidResults, apiOrigin, }: HypergraphAppProviderProps): import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=HypergraphAppContext.d.ts.map