@oxyhq/services
Version:
Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀
19 lines • 716 B
TypeScript
import { OxyServices } from '../../core/OxyServices';
export declare const setOxyFileUrlInstance: (instance: OxyServices) => void;
export interface UseFileDownloadUrlOptions {
variant?: string;
expiresIn?: number;
}
export interface UseFileDownloadUrlResult {
url: string | null;
loading: boolean;
error: Error | null;
}
/**
* Hook to resolve a file's download URL asynchronously.
*
* Prefers `getFileDownloadUrlAsync` and falls back to the synchronous
* `getFileDownloadUrl` helper if the async call fails.
*/
export declare const useFileDownloadUrl: (fileId?: string | null, options?: UseFileDownloadUrlOptions) => UseFileDownloadUrlResult;
//# sourceMappingURL=useFileDownloadUrl.d.ts.map