export declare const SOLANA_SIGN_IN_STATEMENT = "Sign in to this Bounded app with your Solana wallet."; export declare const SOLANA_SIGN_IN_VERSION = "1"; export declare const SOLANA_SIGN_IN_VALIDITY_MS: number; /** * The fields Bounded chooses for one sign-in. Deliberately NO `domain` and NO `address`: * the wallet must determine both from the page and the account it signs with * (@solana/wallet-standard-features 1.4.0, lib/types/signIn.d.ts lines 20-29), which is * what makes the domain hostile-page-proof. `requestId` carries the Bounded app id so the * signed consent names the app the session is minted for (audit-4 CRITICAL-1). */ export interface SolanaSignInRequest { statement: string; version: string; nonce: string; issuedAt: string; expirationTime: string; requestId: string; } export declare function createSolanaSignInRequest(appId: string, nonce: string, now?: number): SolanaSignInRequest; /** * The sign-in request for the app the SDK is configured for. Reads the SAME global config * appId as genAuthNonce and createSessionWithSignature, so the signed app id equals the app * the session is minted for; a snapshotted appIdOverride binds a wallet client created * against another app (the same contract genSolanaMessage keeps). */ export declare function genSolanaSignInRequest(nonce: string, appIdOverride?: string): Promise; /** A request plus the two fields a wallet fills in. */ export interface SolanaSignInMessageFields extends SolanaSignInRequest { domain: string; address: string; } export declare function createSolanaSignInMessageText(fields: SolanaSignInMessageFields): string; /** * The full sign-in text for a signer that is not a wallet (a browser guest device key), * which therefore stamps the page host itself. */ export declare function genSolanaSignInMessage(address: string, nonce: string, domain: string, appIdOverride?: string): Promise; /** * The host a browser page signs in as: `location.host`, the hostname plus any non-default * port, which is exactly what the issuer compares the Origin header's host against. Null * off-browser (Node, React Native), where the caller stays on the origin-less legacy lane. */ export declare function browserSignInDomain(): string | null;