import type PortalCommonParams from "./models/PortalCommonParams.js"; import type PortalPagingParams from "./models/PortalPagingParams.js"; import type PortalPagingResult from "./models/PortalPagingResult.js"; import type Principal from "../auth/models/Principal.js"; export declare function setAllowHttpRequests(allowHttp: boolean): void; export declare function setRefreshFunction(refreshToUse: (principal: Principal) => Promise): void; export interface RequestOptions { url: string; principal?: Principal; params?: PortalCommonParams; pagingParams?: PortalPagingParams; usePost?: boolean; fetch?: typeof window.fetch; responseType?: "json" | "text" | "blob"; } export declare function requestWithPaging(options: RequestOptions, limit?: number): Promise; export declare function appendToken(url: string, token: string, principalUrl?: string): string; declare function request(options: RequestOptions): Promise; export default request;