import { UseQueryOptions } from '@tanstack/react-query'; import type { FilePreviewResponseV3Response } from '../responses/FilePreviewResponseV3Response'; import type { ErrorV3 } from '../schemas/ErrorV3'; import type { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface GetFilePreviewV3QueryPathParams { id: string; } export interface GetFilePreviewV3QueryQueryParams { account_identifier: string; org_identifier?: string; project_identifier?: string; } export type GetFilePreviewV3OkResponse = ResponseWithPagination; export type GetFilePreviewV3ErrorResponse = ErrorV3; export interface GetFilePreviewV3Props extends GetFilePreviewV3QueryPathParams, Omit, 'url'> { queryParams: GetFilePreviewV3QueryQueryParams; } export declare function getFilePreviewV3(props: GetFilePreviewV3Props): Promise; /** * Returns a URL for rendering a file inline in the browser. For cloud (S3/GCS) deployments the URL is a presigned URL with inline Content-Disposition and a forced Content-Type baked in, expiring after 20 minutes. For filesystem deployments the URL routes back through the protocol API with preview=true and relies on the caller's session. The endpoint enforces the preview allowlist and a configured maximum size before returning a URL. * */ export declare function useGetFilePreviewV3Query(props: GetFilePreviewV3Props, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;