import { A as SetNameAction, D as Reducer, E as RedoAction, M as UndoAction, N as UpgradeManifest, S as PHDocument, _ as NOOPAction, b as PHAuthState, j as SignalDispatch, k as SchemaPruneAction, l as DocumentModelUtils, m as LoadStateAction, o as DocumentModelGlobalState, r as PHDocumentController, t as ActionMap, w as PHDocumentState, x as PHBaseState } from "../../index-BWXRiGBX.js";
import { a as ZodString, c as $strip, i as ZodObject, o as ZodType, r as ZodLiteral, s as $ZodTypeInternals, t as ZodAny } from "../../schemas-CBgWAPtq.js";
import { t as DocumentDispatch } from "../../index-B72y5VYK.js";
import { S as SetOperatorTeamAction, _ as OperationalHubProfileAction, a as Exact, b as RemoveSubteamAction, c as MakeEmpty, d as Maybe, f as OperationalHubProfileState, g as SetOperatorTeamInput, h as SetOperationalHubNameInput, i as AddSubteamInput, l as MakeMaybe, m as Scalars, n as OperationalHubProfileLocalState, o as Incremental, p as RemoveSubteamInput, r as OperationalHubProfilePHState, s as InputMaybe, t as OperationalHubProfileDocument, u as MakeOptional, v as AddSubteamAction, x as SetOperationalHubNameAction, y as OperationalHubProfileConfigurationAction } from "../../types-PkTOIx1r.js";

//#region document-models/operational-hub-profile/v1/gen/document-model.d.ts
declare const documentModel: DocumentModelGlobalState;
declare namespace creators_d_exports {
  export { addSubteam, removeSubteam, setOperationalHubName, setOperatorTeam };
}
declare const setOperationalHubName: (input: SetOperationalHubNameInput) => SetOperationalHubNameAction;
declare const setOperatorTeam: (input: SetOperatorTeamInput) => SetOperatorTeamAction;
declare const addSubteam: (input: AddSubteamInput) => AddSubteamAction;
declare const removeSubteam: (input: RemoveSubteamInput) => RemoveSubteamAction;
//#endregion
//#region document-models/operational-hub-profile/v1/gen/ph-factories.d.ts
declare function defaultGlobalState(): OperationalHubProfileState;
declare function defaultLocalState(): OperationalHubProfileLocalState;
declare function defaultPHState(): OperationalHubProfilePHState;
declare function createState(baseState?: Partial<PHBaseState>, globalState?: Partial<OperationalHubProfileState>, localState?: Partial<OperationalHubProfileLocalState>): OperationalHubProfilePHState;
/**
 * Creates a OperationalHubProfileDocument with custom global and local state
 * This properly handles the PHBaseState requirements while allowing
 * document-specific state to be set.
 */
declare function createOperationalHubProfileDocument(state?: Partial<{
  auth?: Partial<PHAuthState>;
  document?: Partial<PHDocumentState>;
  global?: Partial<OperationalHubProfileState>;
  local?: Partial<OperationalHubProfileLocalState>;
}>): OperationalHubProfileDocument;
//#endregion
//#region document-models/operational-hub-profile/v1/gen/utils.d.ts
declare const initialGlobalState: OperationalHubProfileState;
declare const initialLocalState: OperationalHubProfileLocalState;
//#endregion
//#region document-models/operational-hub-profile/v1/gen/reducer.d.ts
declare const reducer: Reducer<OperationalHubProfilePHState>;
//#endregion
//#region document-models/operational-hub-profile/v1/gen/controller.d.ts
declare const OperationalHubProfileController: new (initialDocument?: PHDocument<OperationalHubProfilePHState> | undefined) => PHDocumentController<OperationalHubProfilePHState> & ActionMap<OperationalHubProfileConfigurationAction, PHDocumentController<OperationalHubProfilePHState>>;
//#endregion
//#region document-models/operational-hub-profile/v1/gen/schema/zod.d.ts
type Properties<T> = Required<{ [K in keyof T]: ZodType<T[K]> }>;
type definedNonNullAny = {};
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
declare const definedNonNullAnySchema: ZodAny & ZodType<definedNonNullAny, any, $ZodTypeInternals<definedNonNullAny, any>>;
declare function AddSubteamInputSchema(): ZodObject<Properties<AddSubteamInput>>;
declare function OperationalHubProfileStateSchema(): ZodObject<Properties<OperationalHubProfileState>>;
declare function RemoveSubteamInputSchema(): ZodObject<Properties<RemoveSubteamInput>>;
declare function SetOperationalHubNameInputSchema(): ZodObject<Properties<SetOperationalHubNameInput>>;
declare function SetOperatorTeamInputSchema(): ZodObject<Properties<SetOperatorTeamInput>>;
//#endregion
//#region document-models/operational-hub-profile/v1/gen/document-type.d.ts
declare const operationalHubProfileDocumentType = "powerhouse/operational-hub-profile";
//#endregion
//#region document-models/operational-hub-profile/v1/gen/document-schema.d.ts
/** Schema for validating the header object of a OperationalHubProfile document */
declare const OperationalHubProfileDocumentHeaderSchema: ZodObject<{
  id: ZodString;
  name: ZodString;
  createdAtUtcIso: ZodString;
  lastModifiedAtUtcIso: ZodString;
  documentType: ZodLiteral<"powerhouse/operational-hub-profile">;
}, $strip>;
/** Schema for validating the state object of a OperationalHubProfile document */
declare const OperationalHubProfilePHStateSchema: ZodObject<{
  global: ZodObject<Required<{
    name: ZodType<string, unknown, $ZodTypeInternals<string, unknown>>;
    operatorTeam: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    subteams: ZodType<string[], unknown, $ZodTypeInternals<string[], unknown>>;
  }>, $strip>;
}, $strip>;
declare const OperationalHubProfileDocumentSchema: ZodObject<{
  header: ZodObject<{
    id: ZodString;
    name: ZodString;
    createdAtUtcIso: ZodString;
    lastModifiedAtUtcIso: ZodString;
    documentType: ZodLiteral<"powerhouse/operational-hub-profile">;
  }, $strip>;
  state: ZodObject<{
    global: ZodObject<Required<{
      name: ZodType<string, unknown, $ZodTypeInternals<string, unknown>>;
      operatorTeam: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      subteams: ZodType<string[], unknown, $ZodTypeInternals<string[], unknown>>;
    }>, $strip>;
  }, $strip>;
  initialState: ZodObject<{
    global: ZodObject<Required<{
      name: ZodType<string, unknown, $ZodTypeInternals<string, unknown>>;
      operatorTeam: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      subteams: ZodType<string[], unknown, $ZodTypeInternals<string[], unknown>>;
    }>, $strip>;
  }, $strip>;
}, $strip>;
/** Simple helper function to check if a state object is a OperationalHubProfile document state object */
declare function isOperationalHubProfileState(state: unknown): state is OperationalHubProfilePHState;
/** Simple helper function to assert that a document state object is a OperationalHubProfile document state object */
declare function assertIsOperationalHubProfileState(state: unknown): asserts state is OperationalHubProfilePHState;
/** Simple helper function to check if a document is a OperationalHubProfile document */
declare function isOperationalHubProfileDocument(document: unknown): document is OperationalHubProfileDocument;
/** Simple helper function to assert that a document is a OperationalHubProfile document */
declare function assertIsOperationalHubProfileDocument(document: unknown): asserts document is OperationalHubProfileDocument;
//#endregion
//#region document-models/operational-hub-profile/v1/gen/configuration/operations.d.ts
interface OperationalHubProfileConfigurationOperations {
  setOperationalHubNameOperation: (state: OperationalHubProfileState, action: SetOperationalHubNameAction, dispatch?: SignalDispatch) => void;
  setOperatorTeamOperation: (state: OperationalHubProfileState, action: SetOperatorTeamAction, dispatch?: SignalDispatch) => void;
  addSubteamOperation: (state: OperationalHubProfileState, action: AddSubteamAction, dispatch?: SignalDispatch) => void;
  removeSubteamOperation: (state: OperationalHubProfileState, action: RemoveSubteamAction, dispatch?: SignalDispatch) => void;
}
//#endregion
//#region document-models/operational-hub-profile/v1/hooks.d.ts
/** Hook to get a OperationalHubProfile document by its id */
declare function useOperationalHubProfileDocumentById(documentId: string | null | undefined): [OperationalHubProfileDocument, DocumentDispatch<OperationalHubProfileAction>] | [undefined, undefined];
/** Hook to get the selected OperationalHubProfile document */
declare function useSelectedOperationalHubProfileDocument(): [OperationalHubProfileDocument, DocumentDispatch<OperationalHubProfileAction>];
/** Hook to get all OperationalHubProfile documents in the selected drive */
declare function useOperationalHubProfileDocumentsInSelectedDrive(): OperationalHubProfileDocument[] | undefined;
/** Hook to get all OperationalHubProfile documents in the selected folder */
declare function useOperationalHubProfileDocumentsInSelectedFolder(): OperationalHubProfileDocument[] | undefined;
//#endregion
//#region document-models/operational-hub-profile/v1/actions.d.ts
/** Actions for the OperationalHubProfile document model */
declare const actions: {
  setOperationalHubName: (input: SetOperationalHubNameInput) => SetOperationalHubNameAction;
  setOperatorTeam: (input: SetOperatorTeamInput) => SetOperatorTeamAction;
  addSubteam: (input: AddSubteamInput) => AddSubteamAction;
  removeSubteam: (input: RemoveSubteamInput) => RemoveSubteamAction;
  setName: (name: string | {
    name: string;
  }) => SetNameAction;
  undo: (count?: number, scope?: string) => UndoAction;
  redo: (count?: number, scope?: string) => RedoAction;
  prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
  loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
    name: string;
  }, operations: number) => LoadStateAction;
  noop: (scope?: string) => NOOPAction;
};
//#endregion
//#region document-models/operational-hub-profile/v1/utils.d.ts
/** Utils for the OperationalHubProfile document model */
declare const utils: DocumentModelUtils<OperationalHubProfilePHState>;
//#endregion
//#region document-models/operational-hub-profile/upgrades/versions.d.ts
declare const supportedVersions: readonly [1];
declare const latestVersion: 1;
//#endregion
//#region document-models/operational-hub-profile/upgrades/upgrade-manifest.d.ts
declare const operationalHubProfileUpgradeManifest: UpgradeManifest<typeof supportedVersions>;
//#endregion
export { AddSubteamAction, AddSubteamInput, AddSubteamInputSchema, Exact, Incremental, InputMaybe, MakeEmpty, MakeMaybe, MakeOptional, Maybe, OperationalHubProfileAction, OperationalHubProfileConfigurationAction, OperationalHubProfileConfigurationOperations, OperationalHubProfileController, OperationalHubProfileDocument, OperationalHubProfileDocumentHeaderSchema, OperationalHubProfileDocumentSchema, OperationalHubProfileState as OperationalHubProfileGlobalState, OperationalHubProfileState, OperationalHubProfileLocalState, OperationalHubProfilePHState, OperationalHubProfilePHStateSchema, OperationalHubProfileStateSchema, RemoveSubteamAction, RemoveSubteamInput, RemoveSubteamInputSchema, Scalars, SetOperationalHubNameAction, SetOperationalHubNameInput, SetOperationalHubNameInputSchema, SetOperatorTeamAction, SetOperatorTeamInput, SetOperatorTeamInputSchema, actions, addSubteam, assertIsOperationalHubProfileDocument, assertIsOperationalHubProfileState, createOperationalHubProfileDocument, createState, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, documentModel, initialGlobalState, initialLocalState, isDefinedNonNullAny, isOperationalHubProfileDocument, isOperationalHubProfileState, latestVersion, creators_d_exports as operationalHubProfileConfigurationActions, operationalHubProfileDocumentType, operationalHubProfileUpgradeManifest, reducer, removeSubteam, setOperationalHubName, setOperatorTeam, supportedVersions, useOperationalHubProfileDocumentById, useOperationalHubProfileDocumentsInSelectedDrive, useOperationalHubProfileDocumentsInSelectedFolder, useSelectedOperationalHubProfileDocument, utils };
//# sourceMappingURL=index.d.ts.map