import { ESPCDFAPIResponse, ESPCDFGroupSharingRequestOperationType, ESPCDFGroupSharingRequestInterface, ESPCDFGroupSharingRequestOperation, ESPCDFGroupSharingStatus } from "../types"; import { ESPCDFOperationEventEmitter, ESPCDFOperationListener } from "../utils/OperationEventEmitter"; export declare class ESPCDFGroupSharingRequest implements ESPCDFGroupSharingRequestInterface { id: string; status: ESPCDFGroupSharingStatus; timestamp: number; groupIds: string[]; groupnames: string[]; username: string; primaryUsername: string; transfer: boolean; newRole: string; metadata: Record; operations: ESPCDFGroupSharingRequestOperation; _raw: any; readonly events: ESPCDFOperationEventEmitter; constructor(requestData: ESPCDFGroupSharingRequestInterface); /** * Subscribe to all operation events * @param listener - The callback function to register * @returns Unsubscribe function */ subscribe(listener: ESPCDFOperationListener): () => void; /** * Remove all listeners and clean up */ dispose(): void; /** * Internal method to emit callbacks after operations */ private emit; /** * Wraps an operation with consistent event emission logic. * Supports optional getSuccess to derive success from result (e.g. result.status === "success"). */ private runAndEmit; accept(): Promise; decline(): Promise; remove(): Promise; }