import type { TreeNode } from '../lib/types.js'; interface PresignedUrlState { url: string | null; loading: boolean; error: string | null; /** The error's own text, shown under `error` as technical detail. */ errorDetail?: string | undefined; } /** Fetch a presigned URL per file, cached so repeated mounts share one request; callbacks come from refs so the effect keys only on file identity. */ export declare function usePresignedUrl(node: TreeNode | null, getPresignedUrl: (node: TreeNode) => Promise<[string | null, Error | null]>, { enabled, linkErrorMessage }: { enabled: boolean; linkErrorMessage: string; }): PresignedUrlState; export {};