/** * Get Signed URL Service * Gets a temporary signed URL for file access */ import type { GetSignedUrlRequest, ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; /** * Get a signed URL for temporary file access * Uses endpoint: GET /files/:id/signed-url * * @param request - Request with file ID and optional expiration * @param options - Optional service options (client override, config overrides) * @returns Promise * * @example * ```typescript * // Get a signed URL (default expiration) * const { url, expiresAt } = await getSignedUrl({ id: '550e8400-e29b-41d4-a716-446655440000' }); * * // Get a signed URL with custom expiration * const { url } = await getSignedUrl({ * id: '550e8400-e29b-41d4-a716-446655440000', * query: { expiresIn: 3600 } // 1 hour * }); * * // Use the signed URL * window.open(url); * ``` * * @throws {ApiPackageError} When the file is not found */ export declare function getSignedUrl(request: GetSignedUrlRequest, options?: ServiceOptions): Promise; //# sourceMappingURL=getSignedUrl.d.ts.map