import type { Page } from './browser/BrowserPage'; import type { RemotionRawFrame as CdpRemotionRawFrame, RemotionFramePoolBackend } from './browser/devtools-types'; import { type StillImageFormat } from './image-format'; import type { LogLevel } from './log-level'; import type { PixelFormat } from './pixel-format'; export declare const getPreferredRemotionSharedMemoryBackend: () => 'auto' | RemotionFramePoolBackend; export type RemotionSharedMemoryPoolLifetime = { isRetired: () => boolean; waitForRetirement: () => Promise; onRetired: (listener: () => Promise) => (() => void) | null; }; export type RemotionRawFrame = CdpRemotionRawFrame & { type: 'remotion-shared-memory'; poolId: number; sharedMemoryName: string; backend: RemotionFramePoolBackend; slotCount: number; slotCapacity: number; poolLifetime: RemotionSharedMemoryPoolLifetime; release: () => Promise; }; export type CapturedFrame = Buffer | RemotionRawFrame; export declare class RemotionSharedMemoryCapture { #private; constructor(options: { width: number; height: number; indent: boolean; logLevel: LogLevel; backingDirectory: string | null; }); isSupported(): boolean; getImageFormat(imageFormat: StillImageFormat): StillImageFormat; setPixelFormat(pixelFormat: PixelFormat): void; initializePages(pages: Page[]): Promise; ensurePage(page: Page): Promise; acquire(page: Page): Promise<{ slot: number; frameId: string; fail: () => void; discardPublished: () => Promise; publish: (metadata: CdpRemotionRawFrame) => Promise; } | null>; destroy(): Promise; forgetPage(page: Page): Promise; forgetAllPages(): Promise; dispose(): Promise; } export declare const isRemotionRawFrame: (frame: CapturedFrame) => frame is RemotionRawFrame;