import type { OrganizationInput } from "@stigmer/sdk";
import type { Organization } from "@stigmer/protos/ai/stigmer/tenancy/organization/v1/api_pb";
/** Return value of {@link useCreateOrganization}. */
export interface UseCreateOrganizationReturn {
    /** Submit an {@link OrganizationInput} to create a new Organization. Resolves with the server-created resource. */
    readonly create: (input: OrganizationInput) => Promise<Organization>;
    /** `true` while the create request is in flight. */
    readonly isCreating: boolean;
    /** Error from the last failed create, or `null` when healthy. */
    readonly error: Error | null;
    /** Reset `error` to `null`. */
    readonly clearError: () => void;
}
/**
 * Behavior hook that wraps `organization.create()` with loading/error
 * state.
 *
 * Creates an Organization resource — a tenancy boundary that owns
 * agents, environments, skills, MCP servers, and other platform
 * resources. The caller provides an {@link OrganizationInput} with
 * `name`, `org`, and optionally `description` and `logoUrl`.
 *
 * Returns the full {@link Organization} proto including
 * server-generated metadata (id, slug, version, timestamps) so
 * callers can immediately reference the created resource.
 *
 * @example
 * ```tsx
 * const { create, isCreating, error } = useCreateOrganization();
 *
 * const org = await create({
 *   name: "Acme Corp",
 *   org: "acme-corp",
 *   description: "Main engineering organization",
 * });
 * ```
 */
export declare function useCreateOrganization(): UseCreateOrganizationReturn;
//# sourceMappingURL=useCreateOrganization.d.ts.map