import { A as SetNameAction, B as ZodEnum, D as Reducer, E as RedoAction, G as $ZodTypeInternals, H as ZodObject, K as $strip, M as UndoAction, N as UpgradeManifest, S as PHDocument, U as ZodString, V as ZodLiteral, W as ZodType, _ 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, z as ZodAny } from "../../index-otPBmxzq.js";
import { t as DocumentDispatch } from "../../index-BmX8nfqX.js";
import { $ as MakeMaybe, A as SetCreatedAtAction, At as WithdrawApplicationInput, B as AddFundsAskedInput, C as AddAppSocialAction, Ct as SetIsInactiveInput, D as SetAppExtensionsAction, Dt as SetProjectRefInput, E as SetAppContentUriAction, Et as SetPoolRefInput, F as GrantApplicationDocument, G as ApplicationStatus, H as AppSocial, I as GrantApplicationLocalState, J as Exact, K as ApproveApplicationInput, L as GrantApplicationPHState, M as SetIsInactiveAction, N as SetPoolRefAction, O as SetAppLicenseUriAction, Ot as StartReviewInput, P as SetProjectRefAction, Q as MakeEmpty, R as AddAppSocialInput, S as SetPayoutAddressAction, St as SetFundsAskedUsdInput, T as RemoveAppSocialAction, Tt as SetPayoutAddressInput, U as AppSubmitter, V as AppFundingAmount, W as AppSubmitterType, X as Incremental, Y as GrantApplicationState, Z as InputMaybe, _ as GrantApplicationFundingAction, _t as SetAppLicenseUriInput, a as ApproveApplicationAction, at as PaymentTerm, b as SetFundsAskedUsdAction, bt as SetDiscussionsToInput, c as MarkRevisedAction, ct as RecordPayoutInput, d as RequestRevisionAction, dt as RemoveFundsAskedInput, et as MakeOptional, f as StartReviewAction, ft as RequestRevisionInput, g as AddFundsAskedAction, gt as SetAppExtensionsInput, h as AddFundsApprovedAction, ht as SetAppContentUriInput, i as RecordPayoutAction, it as OpenApplicationInput, j as SetDiscussionsToAction, k as SetCompletionRateAction, kt as SubmitApplicationInput, l as OpenApplicationAction, lt as RejectApplicationInput, m as WithdrawApplicationAction, mt as Scalars, n as GrantApplicationPayoutsAction, nt as MarkRevisedInput, o as ConditionallyApproveAction, ot as Payout, p as SubmitApplicationAction, pt as ReviewStage, q as ConditionallyApproveInput, r as MarkCompletedAction, rt as Maybe, s as GrantApplicationReviewAction, st as PayoutAddress, t as GrantApplicationAction, tt as MarkCompletedInput, u as RejectApplicationAction, ut as RemoveAppSocialInput, v as RemoveFundsAskedAction, vt as SetCompletionRateInput, w as GrantApplicationMetadataAction, wt as SetPaymentTermInput, x as SetPaymentTermAction, xt as SetFundsApprovedUsdInput, y as SetFundsApprovedUsdAction, yt as SetCreatedAtInput, z as AddFundsApprovedInput } from "../../actions-GbaHpgIz.js";

//#region document-models/grant-application/v1/gen/document-model.d.ts
declare const documentModel: DocumentModelGlobalState;
declare namespace creators_d_exports$1 {
  export { addAppSocial, removeAppSocial, setAppContentUri, setAppExtensions, setAppLicenseUri, setCompletionRate, setCreatedAt, setDiscussionsTo, setIsInactive, setPoolRef, setProjectRef };
}
declare const setPoolRef: (input: SetPoolRefInput) => SetPoolRefAction;
declare const setProjectRef: (input: SetProjectRefInput) => SetProjectRefAction;
declare const setCreatedAt: (input: SetCreatedAtInput) => SetCreatedAtAction;
declare const setAppContentUri: (input: SetAppContentUriInput) => SetAppContentUriAction;
declare const setDiscussionsTo: (input: SetDiscussionsToInput) => SetDiscussionsToAction;
declare const setAppLicenseUri: (input: SetAppLicenseUriInput) => SetAppLicenseUriAction;
declare const setIsInactive: (input: SetIsInactiveInput) => SetIsInactiveAction;
declare const setCompletionRate: (input: SetCompletionRateInput) => SetCompletionRateAction;
declare const setAppExtensions: (input: SetAppExtensionsInput) => SetAppExtensionsAction;
declare const addAppSocial: (input: AddAppSocialInput) => AddAppSocialAction;
declare const removeAppSocial: (input: RemoveAppSocialInput) => RemoveAppSocialAction;
declare namespace creators_d_exports {
  export { addFundsApproved, addFundsAsked, removeFundsAsked, setFundsApprovedUsd, setFundsAskedUsd, setPaymentTerm, setPayoutAddress };
}
declare const addFundsAsked: (input: AddFundsAskedInput) => AddFundsAskedAction;
declare const removeFundsAsked: (input: RemoveFundsAskedInput) => RemoveFundsAskedAction;
declare const setFundsAskedUsd: (input: SetFundsAskedUsdInput) => SetFundsAskedUsdAction;
declare const addFundsApproved: (input: AddFundsApprovedInput) => AddFundsApprovedAction;
declare const setFundsApprovedUsd: (input: SetFundsApprovedUsdInput) => SetFundsApprovedUsdAction;
declare const setPayoutAddress: (input: SetPayoutAddressInput) => SetPayoutAddressAction;
declare const setPaymentTerm: (input: SetPaymentTermInput) => SetPaymentTermAction;
declare namespace creators_d_exports$3 {
  export { approveApplication, conditionallyApprove, markRevised, openApplication, rejectApplication, requestRevision, startReview, submitApplication, withdrawApplication };
}
declare const submitApplication: (input: SubmitApplicationInput) => SubmitApplicationAction;
declare const openApplication: (input: OpenApplicationInput) => OpenApplicationAction;
declare const startReview: (input: StartReviewInput) => StartReviewAction;
declare const requestRevision: (input: RequestRevisionInput) => RequestRevisionAction;
declare const markRevised: (input: MarkRevisedInput) => MarkRevisedAction;
declare const approveApplication: (input: ApproveApplicationInput) => ApproveApplicationAction;
declare const conditionallyApprove: (input: ConditionallyApproveInput) => ConditionallyApproveAction;
declare const rejectApplication: (input: RejectApplicationInput) => RejectApplicationAction;
declare const withdrawApplication: (input: WithdrawApplicationInput) => WithdrawApplicationAction;
declare namespace creators_d_exports$2 {
  export { markCompleted, recordPayout };
}
declare const recordPayout: (input: RecordPayoutInput) => RecordPayoutAction;
declare const markCompleted: (input: MarkCompletedInput) => MarkCompletedAction;
//#endregion
//#region document-models/grant-application/v1/gen/ph-factories.d.ts
declare function defaultGlobalState(): GrantApplicationState;
declare function defaultLocalState(): GrantApplicationLocalState;
declare function defaultPHState(): GrantApplicationPHState;
declare function createState(baseState?: Partial<PHBaseState>, globalState?: Partial<GrantApplicationState>, localState?: Partial<GrantApplicationLocalState>): GrantApplicationPHState;
/**
 * Creates a GrantApplicationDocument with custom global and local state
 * This properly handles the PHBaseState requirements while allowing
 * document-specific state to be set.
 */
declare function createGrantApplicationDocument(state?: Partial<{
  auth?: Partial<PHAuthState>;
  document?: Partial<PHDocumentState>;
  global?: Partial<GrantApplicationState>;
  local?: Partial<GrantApplicationLocalState>;
}>): GrantApplicationDocument;
//#endregion
//#region document-models/grant-application/v1/gen/utils.d.ts
declare const initialGlobalState: GrantApplicationState;
declare const initialLocalState: GrantApplicationLocalState;
//#endregion
//#region document-models/grant-application/v1/gen/reducer.d.ts
declare const reducer: Reducer<GrantApplicationPHState>;
//#endregion
//#region document-models/grant-application/v1/gen/controller.d.ts
declare const GrantApplicationController: new (initialDocument?: PHDocument<GrantApplicationPHState> | undefined) => PHDocumentController<GrantApplicationPHState> & ActionMap<GrantApplicationAction, PHDocumentController<GrantApplicationPHState>>;
//#endregion
//#region document-models/grant-application/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 const AppSubmitterTypeSchema: ZodEnum<{
  AUTOMATION: "AUTOMATION";
  COMMUNITY: "COMMUNITY";
  VERIFIED_PUBLISHER: "VERIFIED_PUBLISHER";
}>;
declare const ApplicationStatusSchema: ZodEnum<{
  completed: "completed";
  approved: "approved";
  funded: "funded";
  in_review: "in_review";
  pending: "pending";
  rejected: "rejected";
}>;
declare const PaymentTermSchema: ZodEnum<{
  ESCROW: "ESCROW";
  MILESTONE_BASED_ADVANCE_PAYMENT: "MILESTONE_BASED_ADVANCE_PAYMENT";
  MILESTONE_BASED_FIXED_PRICE: "MILESTONE_BASED_FIXED_PRICE";
  RETAINER_BASED: "RETAINER_BASED";
  VARIABLE_COST: "VARIABLE_COST";
}>;
declare const ReviewStageSchema: ZodEnum<{
  APPROVED: "APPROVED";
  REJECTED: "REJECTED";
  UNDER_REVIEW: "UNDER_REVIEW";
  DRAFT: "DRAFT";
  COMPLETED: "COMPLETED";
  REVISED: "REVISED";
  CONDITIONALLY_APPROVED: "CONDITIONALLY_APPROVED";
  FUNDED: "FUNDED";
  NEEDS_REVISION: "NEEDS_REVISION";
  OPENED: "OPENED";
  SUBMITTED: "SUBMITTED";
  WITHDRAWN: "WITHDRAWN";
}>;
declare function AddAppSocialInputSchema(): ZodObject<Properties<AddAppSocialInput>>;
declare function AddFundsApprovedInputSchema(): ZodObject<Properties<AddFundsApprovedInput>>;
declare function AddFundsAskedInputSchema(): ZodObject<Properties<AddFundsAskedInput>>;
declare function AppFundingAmountSchema(): ZodObject<Properties<AppFundingAmount>>;
declare function AppSocialSchema(): ZodObject<Properties<AppSocial>>;
declare function AppSubmitterSchema(): ZodObject<Properties<AppSubmitter>>;
declare function ApproveApplicationInputSchema(): ZodObject<Properties<ApproveApplicationInput>>;
declare function ConditionallyApproveInputSchema(): ZodObject<Properties<ConditionallyApproveInput>>;
declare function GrantApplicationStateSchema(): ZodObject<Properties<GrantApplicationState>>;
declare function MarkCompletedInputSchema(): ZodObject<Properties<MarkCompletedInput>>;
declare function MarkRevisedInputSchema(): ZodObject<Properties<MarkRevisedInput>>;
declare function OpenApplicationInputSchema(): ZodObject<Properties<OpenApplicationInput>>;
declare function PayoutSchema(): ZodObject<Properties<Payout>>;
declare function PayoutAddressSchema(): ZodObject<Properties<PayoutAddress>>;
declare function RecordPayoutInputSchema(): ZodObject<Properties<RecordPayoutInput>>;
declare function RejectApplicationInputSchema(): ZodObject<Properties<RejectApplicationInput>>;
declare function RemoveAppSocialInputSchema(): ZodObject<Properties<RemoveAppSocialInput>>;
declare function RemoveFundsAskedInputSchema(): ZodObject<Properties<RemoveFundsAskedInput>>;
declare function RequestRevisionInputSchema(): ZodObject<Properties<RequestRevisionInput>>;
declare function SetAppContentUriInputSchema(): ZodObject<Properties<SetAppContentUriInput>>;
declare function SetAppExtensionsInputSchema(): ZodObject<Properties<SetAppExtensionsInput>>;
declare function SetAppLicenseUriInputSchema(): ZodObject<Properties<SetAppLicenseUriInput>>;
declare function SetCompletionRateInputSchema(): ZodObject<Properties<SetCompletionRateInput>>;
declare function SetCreatedAtInputSchema(): ZodObject<Properties<SetCreatedAtInput>>;
declare function SetDiscussionsToInputSchema(): ZodObject<Properties<SetDiscussionsToInput>>;
declare function SetFundsApprovedUsdInputSchema(): ZodObject<Properties<SetFundsApprovedUsdInput>>;
declare function SetFundsAskedUsdInputSchema(): ZodObject<Properties<SetFundsAskedUsdInput>>;
declare function SetIsInactiveInputSchema(): ZodObject<Properties<SetIsInactiveInput>>;
declare function SetPaymentTermInputSchema(): ZodObject<Properties<SetPaymentTermInput>>;
declare function SetPayoutAddressInputSchema(): ZodObject<Properties<SetPayoutAddressInput>>;
declare function SetPoolRefInputSchema(): ZodObject<Properties<SetPoolRefInput>>;
declare function SetProjectRefInputSchema(): ZodObject<Properties<SetProjectRefInput>>;
declare function StartReviewInputSchema(): ZodObject<Properties<StartReviewInput>>;
declare function SubmitApplicationInputSchema(): ZodObject<Properties<SubmitApplicationInput>>;
declare function WithdrawApplicationInputSchema(): ZodObject<Properties<WithdrawApplicationInput>>;
//#endregion
//#region document-models/grant-application/v1/gen/document-type.d.ts
declare const grantApplicationDocumentType = "rfp-hub/grant-application";
//#endregion
//#region document-models/grant-application/v1/gen/document-schema.d.ts
/** Schema for validating the header object of a GrantApplication document */
declare const GrantApplicationDocumentHeaderSchema: ZodObject<{
  id: ZodString;
  name: ZodString;
  createdAtUtcIso: ZodString;
  lastModifiedAtUtcIso: ZodString;
  documentType: ZodLiteral<"rfp-hub/grant-application">;
}, $strip>;
/** Schema for validating the state object of a GrantApplication document */
declare const GrantApplicationPHStateSchema: ZodObject<{
  global: ZodObject<Required<{
    applicationCompletionRate: ZodType<Maybe<number>, unknown, $ZodTypeInternals<Maybe<number>, unknown>>;
    contentURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    createdAt: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    discussionsTo: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    extensions: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    feedbackNotes: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    fundsApproved: ZodType<AppFundingAmount[], unknown, $ZodTypeInternals<AppFundingAmount[], unknown>>;
    fundsApprovedInUSD: ZodType<Maybe<{
      unit: string;
      value: number;
    }>, unknown, $ZodTypeInternals<Maybe<{
      unit: string;
      value: number;
    }>, unknown>>;
    fundsAsked: ZodType<AppFundingAmount[], unknown, $ZodTypeInternals<AppFundingAmount[], unknown>>;
    fundsAskedInUSD: ZodType<Maybe<{
      unit: string;
      value: number;
    }>, unknown, $ZodTypeInternals<Maybe<{
      unit: string;
      value: number;
    }>, unknown>>;
    grantPoolId: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    grantPoolName: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    grantPoolsURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    isInactive: ZodType<boolean, unknown, $ZodTypeInternals<boolean, unknown>>;
    licenseURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    paymentTerm: ZodType<Maybe<PaymentTerm>, unknown, $ZodTypeInternals<Maybe<PaymentTerm>, unknown>>;
    payoutAddress: ZodType<Maybe<PayoutAddress>, unknown, $ZodTypeInternals<Maybe<PayoutAddress>, unknown>>;
    payouts: ZodType<Payout[], unknown, $ZodTypeInternals<Payout[], unknown>>;
    projectId: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    projectName: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    projectsURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    reviewStage: ZodType<ReviewStage, unknown, $ZodTypeInternals<ReviewStage, unknown>>;
    reviewedAt: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    reviewedBy: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    revisionCount: ZodType<number, unknown, $ZodTypeInternals<number, unknown>>;
    socials: ZodType<AppSocial[], unknown, $ZodTypeInternals<AppSocial[], unknown>>;
    status: ZodType<ApplicationStatus, unknown, $ZodTypeInternals<ApplicationStatus, unknown>>;
    submittedAt: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
    submitter: ZodType<Maybe<AppSubmitter>, unknown, $ZodTypeInternals<Maybe<AppSubmitter>, unknown>>;
  }>, $strip>;
}, $strip>;
declare const GrantApplicationDocumentSchema: ZodObject<{
  header: ZodObject<{
    id: ZodString;
    name: ZodString;
    createdAtUtcIso: ZodString;
    lastModifiedAtUtcIso: ZodString;
    documentType: ZodLiteral<"rfp-hub/grant-application">;
  }, $strip>;
  state: ZodObject<{
    global: ZodObject<Required<{
      applicationCompletionRate: ZodType<Maybe<number>, unknown, $ZodTypeInternals<Maybe<number>, unknown>>;
      contentURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      createdAt: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      discussionsTo: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      extensions: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      feedbackNotes: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      fundsApproved: ZodType<AppFundingAmount[], unknown, $ZodTypeInternals<AppFundingAmount[], unknown>>;
      fundsApprovedInUSD: ZodType<Maybe<{
        unit: string;
        value: number;
      }>, unknown, $ZodTypeInternals<Maybe<{
        unit: string;
        value: number;
      }>, unknown>>;
      fundsAsked: ZodType<AppFundingAmount[], unknown, $ZodTypeInternals<AppFundingAmount[], unknown>>;
      fundsAskedInUSD: ZodType<Maybe<{
        unit: string;
        value: number;
      }>, unknown, $ZodTypeInternals<Maybe<{
        unit: string;
        value: number;
      }>, unknown>>;
      grantPoolId: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      grantPoolName: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      grantPoolsURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      isInactive: ZodType<boolean, unknown, $ZodTypeInternals<boolean, unknown>>;
      licenseURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      paymentTerm: ZodType<Maybe<PaymentTerm>, unknown, $ZodTypeInternals<Maybe<PaymentTerm>, unknown>>;
      payoutAddress: ZodType<Maybe<PayoutAddress>, unknown, $ZodTypeInternals<Maybe<PayoutAddress>, unknown>>;
      payouts: ZodType<Payout[], unknown, $ZodTypeInternals<Payout[], unknown>>;
      projectId: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      projectName: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      projectsURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      reviewStage: ZodType<ReviewStage, unknown, $ZodTypeInternals<ReviewStage, unknown>>;
      reviewedAt: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      reviewedBy: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      revisionCount: ZodType<number, unknown, $ZodTypeInternals<number, unknown>>;
      socials: ZodType<AppSocial[], unknown, $ZodTypeInternals<AppSocial[], unknown>>;
      status: ZodType<ApplicationStatus, unknown, $ZodTypeInternals<ApplicationStatus, unknown>>;
      submittedAt: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      submitter: ZodType<Maybe<AppSubmitter>, unknown, $ZodTypeInternals<Maybe<AppSubmitter>, unknown>>;
    }>, $strip>;
  }, $strip>;
  initialState: ZodObject<{
    global: ZodObject<Required<{
      applicationCompletionRate: ZodType<Maybe<number>, unknown, $ZodTypeInternals<Maybe<number>, unknown>>;
      contentURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      createdAt: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      discussionsTo: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      extensions: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      feedbackNotes: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      fundsApproved: ZodType<AppFundingAmount[], unknown, $ZodTypeInternals<AppFundingAmount[], unknown>>;
      fundsApprovedInUSD: ZodType<Maybe<{
        unit: string;
        value: number;
      }>, unknown, $ZodTypeInternals<Maybe<{
        unit: string;
        value: number;
      }>, unknown>>;
      fundsAsked: ZodType<AppFundingAmount[], unknown, $ZodTypeInternals<AppFundingAmount[], unknown>>;
      fundsAskedInUSD: ZodType<Maybe<{
        unit: string;
        value: number;
      }>, unknown, $ZodTypeInternals<Maybe<{
        unit: string;
        value: number;
      }>, unknown>>;
      grantPoolId: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      grantPoolName: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      grantPoolsURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      isInactive: ZodType<boolean, unknown, $ZodTypeInternals<boolean, unknown>>;
      licenseURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      paymentTerm: ZodType<Maybe<PaymentTerm>, unknown, $ZodTypeInternals<Maybe<PaymentTerm>, unknown>>;
      payoutAddress: ZodType<Maybe<PayoutAddress>, unknown, $ZodTypeInternals<Maybe<PayoutAddress>, unknown>>;
      payouts: ZodType<Payout[], unknown, $ZodTypeInternals<Payout[], unknown>>;
      projectId: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      projectName: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      projectsURI: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      reviewStage: ZodType<ReviewStage, unknown, $ZodTypeInternals<ReviewStage, unknown>>;
      reviewedAt: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      reviewedBy: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      revisionCount: ZodType<number, unknown, $ZodTypeInternals<number, unknown>>;
      socials: ZodType<AppSocial[], unknown, $ZodTypeInternals<AppSocial[], unknown>>;
      status: ZodType<ApplicationStatus, unknown, $ZodTypeInternals<ApplicationStatus, unknown>>;
      submittedAt: ZodType<Maybe<string>, unknown, $ZodTypeInternals<Maybe<string>, unknown>>;
      submitter: ZodType<Maybe<AppSubmitter>, unknown, $ZodTypeInternals<Maybe<AppSubmitter>, unknown>>;
    }>, $strip>;
  }, $strip>;
}, $strip>;
/** Simple helper function to check if a state object is a GrantApplication document state object */
declare function isGrantApplicationState(state: unknown): state is GrantApplicationPHState;
/** Simple helper function to assert that a document state object is a GrantApplication document state object */
declare function assertIsGrantApplicationState(state: unknown): asserts state is GrantApplicationPHState;
/** Simple helper function to check if a document is a GrantApplication document */
declare function isGrantApplicationDocument(document: unknown): document is GrantApplicationDocument;
/** Simple helper function to assert that a document is a GrantApplication document */
declare function assertIsGrantApplicationDocument(document: unknown): asserts document is GrantApplicationDocument;
//#endregion
//#region document-models/grant-application/v1/gen/metadata/operations.d.ts
interface GrantApplicationMetadataOperations {
  setPoolRefOperation: (state: GrantApplicationState, action: SetPoolRefAction, dispatch?: SignalDispatch) => void;
  setProjectRefOperation: (state: GrantApplicationState, action: SetProjectRefAction, dispatch?: SignalDispatch) => void;
  setCreatedAtOperation: (state: GrantApplicationState, action: SetCreatedAtAction, dispatch?: SignalDispatch) => void;
  setAppContentUriOperation: (state: GrantApplicationState, action: SetAppContentUriAction, dispatch?: SignalDispatch) => void;
  setDiscussionsToOperation: (state: GrantApplicationState, action: SetDiscussionsToAction, dispatch?: SignalDispatch) => void;
  setAppLicenseUriOperation: (state: GrantApplicationState, action: SetAppLicenseUriAction, dispatch?: SignalDispatch) => void;
  setIsInactiveOperation: (state: GrantApplicationState, action: SetIsInactiveAction, dispatch?: SignalDispatch) => void;
  setCompletionRateOperation: (state: GrantApplicationState, action: SetCompletionRateAction, dispatch?: SignalDispatch) => void;
  setAppExtensionsOperation: (state: GrantApplicationState, action: SetAppExtensionsAction, dispatch?: SignalDispatch) => void;
  addAppSocialOperation: (state: GrantApplicationState, action: AddAppSocialAction, dispatch?: SignalDispatch) => void;
  removeAppSocialOperation: (state: GrantApplicationState, action: RemoveAppSocialAction, dispatch?: SignalDispatch) => void;
}
//#endregion
//#region document-models/grant-application/v1/gen/funding/operations.d.ts
interface GrantApplicationFundingOperations {
  addFundsAskedOperation: (state: GrantApplicationState, action: AddFundsAskedAction, dispatch?: SignalDispatch) => void;
  removeFundsAskedOperation: (state: GrantApplicationState, action: RemoveFundsAskedAction, dispatch?: SignalDispatch) => void;
  setFundsAskedUsdOperation: (state: GrantApplicationState, action: SetFundsAskedUsdAction, dispatch?: SignalDispatch) => void;
  addFundsApprovedOperation: (state: GrantApplicationState, action: AddFundsApprovedAction, dispatch?: SignalDispatch) => void;
  setFundsApprovedUsdOperation: (state: GrantApplicationState, action: SetFundsApprovedUsdAction, dispatch?: SignalDispatch) => void;
  setPayoutAddressOperation: (state: GrantApplicationState, action: SetPayoutAddressAction, dispatch?: SignalDispatch) => void;
  setPaymentTermOperation: (state: GrantApplicationState, action: SetPaymentTermAction, dispatch?: SignalDispatch) => void;
}
//#endregion
//#region document-models/grant-application/v1/gen/review/operations.d.ts
interface GrantApplicationReviewOperations {
  submitApplicationOperation: (state: GrantApplicationState, action: SubmitApplicationAction, dispatch?: SignalDispatch) => void;
  openApplicationOperation: (state: GrantApplicationState, action: OpenApplicationAction, dispatch?: SignalDispatch) => void;
  startReviewOperation: (state: GrantApplicationState, action: StartReviewAction, dispatch?: SignalDispatch) => void;
  requestRevisionOperation: (state: GrantApplicationState, action: RequestRevisionAction, dispatch?: SignalDispatch) => void;
  markRevisedOperation: (state: GrantApplicationState, action: MarkRevisedAction, dispatch?: SignalDispatch) => void;
  approveApplicationOperation: (state: GrantApplicationState, action: ApproveApplicationAction, dispatch?: SignalDispatch) => void;
  conditionallyApproveOperation: (state: GrantApplicationState, action: ConditionallyApproveAction, dispatch?: SignalDispatch) => void;
  rejectApplicationOperation: (state: GrantApplicationState, action: RejectApplicationAction, dispatch?: SignalDispatch) => void;
  withdrawApplicationOperation: (state: GrantApplicationState, action: WithdrawApplicationAction, dispatch?: SignalDispatch) => void;
}
//#endregion
//#region document-models/grant-application/v1/gen/payouts/operations.d.ts
interface GrantApplicationPayoutsOperations {
  recordPayoutOperation: (state: GrantApplicationState, action: RecordPayoutAction, dispatch?: SignalDispatch) => void;
  markCompletedOperation: (state: GrantApplicationState, action: MarkCompletedAction, dispatch?: SignalDispatch) => void;
}
//#endregion
//#region document-models/grant-application/v1/hooks.d.ts
/** Hook to get a GrantApplication document by its id */
declare function useGrantApplicationDocumentById(documentId: string | null | undefined): [GrantApplicationDocument, DocumentDispatch<GrantApplicationAction>] | [undefined, undefined];
/** Hook to get the selected GrantApplication document */
declare function useSelectedGrantApplicationDocument(): [GrantApplicationDocument, DocumentDispatch<GrantApplicationAction>];
/** Hook to get all GrantApplication documents in the selected drive */
declare function useGrantApplicationDocumentsInSelectedDrive(): GrantApplicationDocument[] | undefined;
/** Hook to get all GrantApplication documents in the selected folder */
declare function useGrantApplicationDocumentsInSelectedFolder(): GrantApplicationDocument[] | undefined;
//#endregion
//#region document-models/grant-application/v1/actions.d.ts
/** Actions for the GrantApplication document model */
declare const actions: {
  recordPayout: (input: RecordPayoutInput) => RecordPayoutAction;
  markCompleted: (input: MarkCompletedInput) => MarkCompletedAction;
  submitApplication: (input: SubmitApplicationInput) => SubmitApplicationAction;
  openApplication: (input: OpenApplicationInput) => OpenApplicationAction;
  startReview: (input: StartReviewInput) => StartReviewAction;
  requestRevision: (input: RequestRevisionInput) => RequestRevisionAction;
  markRevised: (input: MarkRevisedInput) => MarkRevisedAction;
  approveApplication: (input: ApproveApplicationInput) => ApproveApplicationAction;
  conditionallyApprove: (input: ConditionallyApproveInput) => ConditionallyApproveAction;
  rejectApplication: (input: RejectApplicationInput) => RejectApplicationAction;
  withdrawApplication: (input: WithdrawApplicationInput) => WithdrawApplicationAction;
  addFundsAsked: (input: AddFundsAskedInput) => AddFundsAskedAction;
  removeFundsAsked: (input: RemoveFundsAskedInput) => RemoveFundsAskedAction;
  setFundsAskedUsd: (input: SetFundsAskedUsdInput) => SetFundsAskedUsdAction;
  addFundsApproved: (input: AddFundsApprovedInput) => AddFundsApprovedAction;
  setFundsApprovedUsd: (input: SetFundsApprovedUsdInput) => SetFundsApprovedUsdAction;
  setPayoutAddress: (input: SetPayoutAddressInput) => SetPayoutAddressAction;
  setPaymentTerm: (input: SetPaymentTermInput) => SetPaymentTermAction;
  setPoolRef: (input: SetPoolRefInput) => SetPoolRefAction;
  setProjectRef: (input: SetProjectRefInput) => SetProjectRefAction;
  setCreatedAt: (input: SetCreatedAtInput) => SetCreatedAtAction;
  setAppContentUri: (input: SetAppContentUriInput) => SetAppContentUriAction;
  setDiscussionsTo: (input: SetDiscussionsToInput) => SetDiscussionsToAction;
  setAppLicenseUri: (input: SetAppLicenseUriInput) => SetAppLicenseUriAction;
  setIsInactive: (input: SetIsInactiveInput) => SetIsInactiveAction;
  setCompletionRate: (input: SetCompletionRateInput) => SetCompletionRateAction;
  setAppExtensions: (input: SetAppExtensionsInput) => SetAppExtensionsAction;
  addAppSocial: (input: AddAppSocialInput) => AddAppSocialAction;
  removeAppSocial: (input: RemoveAppSocialInput) => RemoveAppSocialAction;
  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/grant-application/v1/utils.d.ts
/** Utils for the GrantApplication document model */
declare const utils: DocumentModelUtils<GrantApplicationPHState>;
//#endregion
//#region document-models/grant-application/upgrades/versions.d.ts
declare const supportedVersions: readonly [1];
declare const latestVersion: 1;
//#endregion
//#region document-models/grant-application/upgrades/upgrade-manifest.d.ts
declare const grantApplicationUpgradeManifest: UpgradeManifest<typeof supportedVersions>;
//#endregion
export { AddAppSocialAction, AddAppSocialInput, AddAppSocialInputSchema, AddFundsApprovedAction, AddFundsApprovedInput, AddFundsApprovedInputSchema, AddFundsAskedAction, AddFundsAskedInput, AddFundsAskedInputSchema, AppFundingAmount, AppFundingAmountSchema, AppSocial, AppSocialSchema, AppSubmitter, AppSubmitterSchema, AppSubmitterType, AppSubmitterTypeSchema, ApplicationStatus, ApplicationStatusSchema, ApproveApplicationAction, ApproveApplicationInput, ApproveApplicationInputSchema, ConditionallyApproveAction, ConditionallyApproveInput, ConditionallyApproveInputSchema, Exact, GrantApplicationAction, GrantApplicationController, GrantApplicationDocument, GrantApplicationDocumentHeaderSchema, GrantApplicationDocumentSchema, GrantApplicationFundingAction, GrantApplicationFundingOperations, GrantApplicationState as GrantApplicationGlobalState, GrantApplicationState, GrantApplicationLocalState, GrantApplicationMetadataAction, GrantApplicationMetadataOperations, GrantApplicationPHState, GrantApplicationPHStateSchema, GrantApplicationPayoutsAction, GrantApplicationPayoutsOperations, GrantApplicationReviewAction, GrantApplicationReviewOperations, GrantApplicationStateSchema, Incremental, InputMaybe, MakeEmpty, MakeMaybe, MakeOptional, MarkCompletedAction, MarkCompletedInput, MarkCompletedInputSchema, MarkRevisedAction, MarkRevisedInput, MarkRevisedInputSchema, Maybe, OpenApplicationAction, OpenApplicationInput, OpenApplicationInputSchema, PaymentTerm, PaymentTermSchema, Payout, PayoutAddress, PayoutAddressSchema, PayoutSchema, RecordPayoutAction, RecordPayoutInput, RecordPayoutInputSchema, RejectApplicationAction, RejectApplicationInput, RejectApplicationInputSchema, RemoveAppSocialAction, RemoveAppSocialInput, RemoveAppSocialInputSchema, RemoveFundsAskedAction, RemoveFundsAskedInput, RemoveFundsAskedInputSchema, RequestRevisionAction, RequestRevisionInput, RequestRevisionInputSchema, ReviewStage, ReviewStageSchema, Scalars, SetAppContentUriAction, SetAppContentUriInput, SetAppContentUriInputSchema, SetAppExtensionsAction, SetAppExtensionsInput, SetAppExtensionsInputSchema, SetAppLicenseUriAction, SetAppLicenseUriInput, SetAppLicenseUriInputSchema, SetCompletionRateAction, SetCompletionRateInput, SetCompletionRateInputSchema, SetCreatedAtAction, SetCreatedAtInput, SetCreatedAtInputSchema, SetDiscussionsToAction, SetDiscussionsToInput, SetDiscussionsToInputSchema, SetFundsApprovedUsdAction, SetFundsApprovedUsdInput, SetFundsApprovedUsdInputSchema, SetFundsAskedUsdAction, SetFundsAskedUsdInput, SetFundsAskedUsdInputSchema, SetIsInactiveAction, SetIsInactiveInput, SetIsInactiveInputSchema, SetPaymentTermAction, SetPaymentTermInput, SetPaymentTermInputSchema, SetPayoutAddressAction, SetPayoutAddressInput, SetPayoutAddressInputSchema, SetPoolRefAction, SetPoolRefInput, SetPoolRefInputSchema, SetProjectRefAction, SetProjectRefInput, SetProjectRefInputSchema, StartReviewAction, StartReviewInput, StartReviewInputSchema, SubmitApplicationAction, SubmitApplicationInput, SubmitApplicationInputSchema, WithdrawApplicationAction, WithdrawApplicationInput, WithdrawApplicationInputSchema, actions, addAppSocial, addFundsApproved, addFundsAsked, approveApplication, assertIsGrantApplicationDocument, assertIsGrantApplicationState, conditionallyApprove, createGrantApplicationDocument, createState, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, documentModel, grantApplicationDocumentType, creators_d_exports as grantApplicationFundingActions, creators_d_exports$1 as grantApplicationMetadataActions, creators_d_exports$2 as grantApplicationPayoutsActions, creators_d_exports$3 as grantApplicationReviewActions, grantApplicationUpgradeManifest, initialGlobalState, initialLocalState, isDefinedNonNullAny, isGrantApplicationDocument, isGrantApplicationState, latestVersion, markCompleted, markRevised, openApplication, recordPayout, reducer, rejectApplication, removeAppSocial, removeFundsAsked, requestRevision, setAppContentUri, setAppExtensions, setAppLicenseUri, setCompletionRate, setCreatedAt, setDiscussionsTo, setFundsApprovedUsd, setFundsAskedUsd, setIsInactive, setPaymentTerm, setPayoutAddress, setPoolRef, setProjectRef, startReview, submitApplication, supportedVersions, useGrantApplicationDocumentById, useGrantApplicationDocumentsInSelectedDrive, useGrantApplicationDocumentsInSelectedFolder, useSelectedGrantApplicationDocument, utils, withdrawApplication };
//# sourceMappingURL=index.d.ts.map