import { type DeviceFolderGrant, type DeviceFolderSnapshot, type TurnOrigin } from '@xopcai/endpoint-tools-protocol'; import type { GatewayPrincipal } from '../gateway/security/gateway-principal.js'; import { DurableState } from '../storage/sqlite/durable-state.js'; import type { EndpointConnectionSnapshot, EndpointRegistry } from './registry.js'; export declare const deviceFolderSnapshots: DurableState<{ revision: number; folders: { id: string; kind: "custom" | "desktop" | "downloads" | "documents"; label: string; access?: "gateway" | undefined; mobileIds?: string[] | undefined; }[]; }>; export declare const mobileFolderPlatforms: Set; export declare function pairedFolderClientId(actor: GatewayPrincipal): string | undefined; export declare function saveDeviceFolderSnapshot(principalId: string, snapshot: DeviceFolderSnapshot): boolean; export declare function deviceFoldersFor(endpoint: EndpointConnectionSnapshot, actor: GatewayPrincipal | undefined, origin?: TurnOrigin, registry?: EndpointRegistry): DeviceFolderGrant[]; export declare function permitsFolderInvocation(endpoint: EndpointConnectionSnapshot, actor: GatewayPrincipal | undefined, origin: TurnOrigin, registry: EndpointRegistry, toolName: string, args: Record): boolean;