import type { ExtensionContext } from "@earendil-works/pi-coding-agent"; import type { AdapterState } from "../adapter/activation/state.ts"; import { type ContextAgentIdentity } from "./agent-identity.ts"; import type { RemoteNoteReference } from "../context-sharing.ts"; export declare const REMOTE_ACCOUNT_MISMATCH = "Account mismatch. Shared notes are unavailable. Use messages to exchange the context you need."; export declare const REMOTE_CONTEXT_UNAVAILABLE = "Shared notes are unavailable here. Use messages to exchange the context you need."; /** Encrypted context needs the active transport, not another model's registry credentials. */ export declare function resolveRemoteContextProvider(ctx: ExtensionContext): Promise; export declare function remoteContextScope(identity: ContextAgentIdentity, accountId: string, baseUrl: string): string; export declare function withRemoteContextScope(ctx: ExtensionContext, scope: string | undefined): ExtensionContext; /** Only the trusted host nested route carries this symbol, never model arguments. */ export declare function isRemoteNestedContext(ctx: ExtensionContext): boolean; export declare function readRemoteNoteReference(input: unknown): RemoteNoteReference; export declare function assertRemoteBackendScope(ctx: ExtensionContext, scope: string): void; export declare function resolveRemoteContextScope(ctx: ExtensionContext, state: AdapterState): Promise; /** Host-only provenance, never part of Normal's JSON details or backend payload. */ export declare function bindRemoteBackendScope(result: object, scope: string, readerScope?: string): void; /** Reader-host authenticated relay authorization; original backend provenance remains untouched. */ export declare function remoteDeliveryScope(result: unknown): string | undefined; export declare function remoteBackendScope(result: unknown): string | undefined; export declare function validateRemoteOutputReplay(messages: readonly unknown[], account: () => string | undefined, ctx?: ExtensionContext, baseUrl?: string): void; export declare function validateRemoteScope(encoded: unknown, account: () => string | undefined, ctx?: ExtensionContext, baseUrl?: string): void;