import { UseQueryOptions } from '@tanstack/react-query'; import type { DownloadFileResponseV3Response } from '../responses/DownloadFileResponseV3Response'; import type { RedirectV3Response } from '../responses/RedirectV3Response'; import type { ErrorV3 } from '../schemas/ErrorV3'; import type { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface GetFileV3QueryPathParams { id: string; } export interface GetFileV3QueryQueryParams { account_identifier: string; preview?: boolean; } export type GetFileV3OkResponse = ResponseWithPagination; export type GetFileV3ErrorResponse = RedirectV3Response | ErrorV3; export interface GetFileV3Props extends GetFileV3QueryPathParams, Omit, 'url'> { queryParams: GetFileV3QueryQueryParams; } export declare function getFileV3(props: GetFileV3Props): Promise; /** * Download a file using its id. When `preview=true` is supplied the response is a `302` redirect to an inline-preview URL for the file instead of the file bytes. * */ export declare function useGetFileV3Query(props: GetFileV3Props, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;