import { AuthProvider } from './auth/auth.js';
export declare class RewrapRequest {
    signedRequestToken: string;
}
export declare class RewrapResponse {
    entityWrappedKey: string;
    sessionPublicKey: string;
}
/**
 * Get a rewrapped access key to the document, if possible
 * @param url Key access server rewrap endpoint
 * @param requestBody a signed request with an encrypted document key
 * @param authProvider Authorization middleware
 * @param clientVersion
 */
export declare function fetchWrappedKey(url: string, requestBody: RewrapRequest, authProvider: AuthProvider, clientVersion: string): Promise<RewrapResponse>;
//# sourceMappingURL=kas.d.ts.map