export interface DecoderDeadlinePage { readonly visibilityState: DocumentVisibilityState; addEventListener(type: "visibilitychange", listener: () => void): void; removeEventListener(type: "visibilitychange", listener: () => void): void; } /** * Waits for one step of a video decoder, which answers in milliseconds when * it works and may never answer when it does not. Rejects with a * `TimeoutError` naming the step once `milliseconds` pass; the step itself * carries on, and its owner closes the decoder. * * The budget runs only while the page is visible: a browser may hold a * hidden page's decoder work back, and a step that waited on that is no * broken decoder. */ export declare function withinDecoderDeadline(step: Promise, milliseconds: number, what: string, page?: DecoderDeadlinePage | undefined): Promise; export declare function formatSeconds(milliseconds: number): string; //# sourceMappingURL=decoder-deadline.d.ts.map