import { buildUrlManager, } from '../../../../controllers/url-manager/headless-url-manager.js';
import { MissingControllerProps } from '../../../common/errors.js';
export * from '../../../../controllers/url-manager/headless-url-manager.js';
/**
 * @internal
 * @group Definers
 *
 */
export const defineUrlManager = () => ({
    buildWithProps: (engine, props) => {
        if (props === undefined) {
            throw new MissingControllerProps('UrlManager');
        }
        return buildUrlManager(engine, { initialState: props.initialState });
    },
});
