import { type SkSurface } from '@shopify/react-native-skia'; /** * Clears the internal {@linkcode SkSurface} cache, disposing every cached * Surface. * * Surfaces are otherwise kept alive for up to 15 seconds of inactivity per * thread to avoid re-creating them on every Frame. Call this on teardown to * release GPU memory eagerly. * * @internal */ export declare function clearSurfacesCache(): void; /** * Gets (or lazily creates) an offscreen {@linkcode SkSurface} of the given * {@linkcode width} and {@linkcode height} for the current thread. * * @discussion * Surfaces are cached per thread and size. Unused Surfaces are automatically * evicted from the cache after 15 seconds of inactivity. * * @internal * @worklet */ export declare function getSurface(width: number, height: number): SkSurface;