export function Suspense(): void; export class Suspense { _pendingSuspensionCount: number; _suspenders: any; _detachOnNextRender: any; /** * @param {Promise} promise The thrown promise * @param {Component} suspendingComponent The suspending component */ _childDidSuspend(promise: Promise, suspendingComponent: Component): void; render(props: any, state: any): any[]; } /** * Checks and calls the parent component's _suspended method, passing in the * suspended vnode. This is a way for a parent (e.g. SuspenseList) to get notified * that one of its children/descendants suspended. * * The parent MAY return a callback. The callback will get called when the * suspension resolves, notifying the parent of the fact. * Moreover, the callback gets function `unsuspend` as a parameter. The resolved * child descendant will not actually get unsuspended until `unsuspend` gets called. * This is a way for the parent to delay unsuspending. * * If the parent does not return a callback then the resolved vnode * gets unsuspended immediately when it resolves. * * @param {import('../src/internal').VNode} vnode * @returns {((unsuspend: () => void) => void)?} */ export function suspended(vnode: import('../src/internal').VNode): ((unsuspend: () => void) => void) | null; export function lazy(loader: any): { (props: any): import("preact").VNode; displayName: string; _forwarded: boolean; }; import { Component } from 'preact';