import type { ReactElement } from 'react';
import type { RenderResult } from '@testing-library/react';
import type { ExtractArgs, StateContainerConstructor } from '@blac/core';
import { StateContainerRegistry } from '@blac/core';
import { type CubitStubOptions } from '@blac/core/testing';
interface RenderWithBlocOptions<T extends StateContainerConstructor> extends CubitStubOptions<T> {
    bloc: T;
    /** Args used to resolve which instance the stub is registered under. */
    args?: ExtractArgs<T>;
}
export declare function renderWithBloc<T extends StateContainerConstructor>(ui: ReactElement, options: RenderWithBlocOptions<T>): RenderResult & {
    bloc: InstanceType<T>;
};
export declare function renderWithRegistry(ui: ReactElement, setup: (registry: StateContainerRegistry) => void): RenderResult;
export {};
