/// <reference types="react" resolution-mode="require"/>
import type { ClientTranslationsObject } from '@payloadcms/translations';
import type { Permissions } from '../../auth/index.js';
import type { SanitizedCollectionConfig } from '../../collections/config/types.js';
import type { Locale } from '../../config/types.js';
import type { SanitizedGlobalConfig } from '../../globals/config/types.js';
import type { PayloadRequestWithData } from '../../types/index.js';
import type { LanguageOptions } from '../LanguageOptions.js';
export type AdminViewConfig = {
    Component: AdminViewComponent;
    /** Whether the path should be matched exactly or as a prefix */
    exact?: boolean;
    path: string;
    sensitive?: boolean;
    strict?: boolean;
};
export type AdminViewProps = {
    initPageResult: InitPageResult;
    params?: {
        [key: string]: string | string[] | undefined;
    };
    searchParams: {
        [key: string]: string | string[] | undefined;
    };
};
export type AdminViewComponent = React.ComponentType<AdminViewProps>;
export type AdminView = AdminViewComponent | AdminViewConfig;
export type EditViewProps = {
    collectionSlug?: string;
    globalSlug?: string;
};
export type VisibleEntities = {
    collections: SanitizedCollectionConfig['slug'][];
    globals: SanitizedGlobalConfig['slug'][];
};
export type InitPageResult = {
    collectionConfig?: SanitizedCollectionConfig;
    cookies: Map<string, string>;
    docID?: string;
    globalConfig?: SanitizedGlobalConfig;
    languageOptions: LanguageOptions;
    locale: Locale;
    permissions: Permissions;
    req: PayloadRequestWithData;
    translations: ClientTranslationsObject;
    visibleEntities: VisibleEntities;
};
export type ServerSideEditViewProps = {
    initPageResult: InitPageResult;
    params: {
        [key: string]: string | string[] | undefined;
    };
    routeSegments: string[];
    searchParams: {
        [key: string]: string | string[] | undefined;
    };
};
//# sourceMappingURL=types.d.ts.map