feedbacker-react
Version:
A drop-in React feedback system for component-level feedback capture during development and design review
68 lines • 1.79 kB
TypeScript
/**
* Capture Manager
* Manages screenshot capture adapters and provides a unified interface
*/
import { CaptureOptions, CaptureResult, CaptureAdapterFactory } from '../types/capture';
export declare class CaptureManager {
private static instance;
private adapters;
private factories;
private currentAdapter;
private defaultLibrary;
private constructor();
/**
* Get singleton instance
*/
static getInstance(): CaptureManager;
/**
* Register built-in adapters
*/
private registerBuiltInAdapters;
/**
* Register a custom capture adapter
*/
registerAdapter(name: string, factory: CaptureAdapterFactory, setAsDefault?: boolean): void;
/**
* Set the default capture library
*/
setDefaultLibrary(library: string): void;
/**
* Get or create an adapter instance
*/
private getAdapter;
/**
* Capture a screenshot using the specified or default adapter
*/
capture(element: HTMLElement, options?: CaptureOptions & {
library?: string;
}): Promise<CaptureResult>;
/**
* Capture with fallback to default library
*/
private captureWithFallback;
/**
* Check if a specific library is supported
*/
isLibrarySupported(library: string): Promise<boolean>;
/**
* Get list of available capture libraries
*/
getAvailableLibraries(): string[];
/**
* Get current adapter info
*/
getCurrentAdapterInfo(): {
name: string;
version?: string;
} | null;
/**
* Cleanup all adapters
*/
cleanup(): void;
/**
* Reset to default state
*/
reset(): void;
}
export declare const captureManager: CaptureManager;
//# sourceMappingURL=CaptureManager.d.ts.map